mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 00:55:02 +00:00
Merge pull request #4748 from vjFaLk/Monthly-attendance-fix
Employees with no attendance show up as blank now
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user