modified leave application tests
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user