fixed typo

fixes type in filter parameter
This commit is contained in:
Vijaya Raghavan 2019-10-13 21:41:02 +05:30 committed by GitHub
parent 3f2c5c2319
commit adc1529567
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,7 +125,7 @@ class LeaveApplication(Document):
status = "Half Day" if date == self.half_day_date else "On Leave"
attendance_name = frappe.db.exists('Attendance', dict(employee = self.employee,
attenance_date = date, docstatus = ('!=', 2)))
attendance_date = date, docstatus = ('!=', 2)))
if attendance_name:
# update existing attendance, change absent to on leave