From de7e76078810af1f30111b4e33c321f45d1a6c23 Mon Sep 17 00:00:00 2001 From: Valmik Jangla Date: Fri, 5 Feb 2016 17:46:14 +0530 Subject: [PATCH] Employees with no attendance show up as blank --- .../monthly_attendance_sheet/monthly_attendance_sheet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/hr/report/monthly_attendance_sheet/monthly_attendance_sheet.py b/erpnext/hr/report/monthly_attendance_sheet/monthly_attendance_sheet.py index 3bc355c081..d7787b5aa2 100644 --- a/erpnext/hr/report/monthly_attendance_sheet/monthly_attendance_sheet.py +++ b/erpnext/hr/report/monthly_attendance_sheet/monthly_attendance_sheet.py @@ -26,8 +26,8 @@ def execute(filters=None): total_p = total_a = 0.0 for day in range(filters["total_days_in_month"]): - status = att_map.get(emp).get(day + 1, "Absent") - status_map = {"Present": "P", "Absent": "A", "Half Day": "H"} + status = att_map.get(emp).get(day + 1, "None") + status_map = {"Present": "P", "Absent": "A", "Half Day": "H", "None":" "} row.append(status_map[status]) if status == "Present":