{% extends 'att/report/base.html' %} {% load i18n %} {% block opts_modify %} $.extend(opts, { cols: [[ {field:'emp_code', width:120, title: "{% trans 'report_column_empCode' %}", sort:true} ,{field:'first_name', title: "{% trans 'report_column_firstName' %}"} ,{field:'last_name', title: "{% trans 'report_column_lastName' %}"} ,{field:'gender', title: "{% trans 'report_column_gender' %}"} ,{field:'dept_code', title: "{% trans 'report_column_departmentCode' %}", sort:true} ,{field:'dept_name', width:140, title: "{% trans 'report_column_departmentName' %}", sort:true} ,{field:'position_code', title: "{% trans 'report_column_positionCode' %}"} ,{field:'position_name', title: "{% trans 'report_column_positionName' %}"} ,{field:'att_date', title: "{% trans 'report_column_attendanceDate' %}", width:100, sort:true} ,{field:'weekday', width:80, title: "{% trans 'report_column_attendanceWeekday' %}", width:100} ,{field:'timetable', title: "{% trans 'report_column_timeIntervalName' %}"} ,{field:'check_in', title: "{% trans 'report_column_checkInTime' %}"} ,{field:'check_out', title: "{% trans 'report_column_checkOutTime' %}"} ,{field:'duty_duration', title: "{% trans 'report_column_attendanceDuration' %}"} ,{field:'clock_in', title: "{% trans 'report_column_clockInTime' %}", templet: function(obj){ if(obj.late && parseInt(obj.late) > 0 && obj.late != obj.break_late){ return ''+ obj.clock_in +'' }else{ return obj.clock_in } }} ,{field:'clock_out', title: "{% trans 'report_column_clockOutTime' %}", templet: function(obj){ if(obj.early_leave && parseInt(obj.early_leave) > 0 && obj.early_leave != obj.break_early){ return ''+ obj.clock_out +'' }else{ return obj.clock_out } }} ,{field:'total_time', title: "{% trans 'report_column_totalTimeDuration' %}", width:80} ,{field:'half_day', title: "{% trans 'report_column_halfDayStatus' %}"} ]] ,method: "get" ,url: "/att/api/halfDayReport/" }); {% endblock %}