modified leave application tests

This commit is contained in:
Shreya
2018-01-15 18:38:44 +05:30
parent 05f7e14b5a
commit 4298bcfa40
9 changed files with 22 additions and 30 deletions

View File

@@ -192,7 +192,7 @@ def mark_attendance():
"attendance_date": attendance_date
})
leave = frappe.db.sql("""select name from `tabLeave Application`
where employee = %s and %s between from_date and to_date and status = 'Approved'
where employee = %s and %s between from_date and to_date and workflow_state = 'Approved'
and docstatus = 1""", (employee.name, attendance_date))
if leave: