Merge pull request #4824 from vjFaLk/att-report-fix

"Left" Employees now show up in Monthly Attendance Report
This commit is contained in:
Anand Doshi 2016-02-18 14:54:28 +05:30
commit deccbabcc1

View File

@ -39,7 +39,6 @@ def execute(filters=None):
total_a += 0.5
row += [total_p, total_a]
data.append(row)
return columns, data
@ -97,8 +96,7 @@ def get_employee_details():
emp_map = frappe._dict()
for d in frappe.db.sql("""select name, employee_name, designation,
department, branch, company
from tabEmployee where docstatus < 2
and status = 'Active'""", as_dict=1):
from tabEmployee""", as_dict=1):
emp_map.setdefault(d.name, d)
return emp_map