commit | 8a1cf454739b31c94bb8d4102237c3b0abf052a2 | [log] [tgz] |
---|---|---|
author | Anurag Mishra <32095923+Anurag810@users.noreply.github.com> | Mon May 25 18:39:19 2020 +0530 |
committer | GitHub <noreply@github.com> | Mon May 25 18:39:19 2020 +0530 |
tree | 76b252e47559fa75347fd6f87d0265a77164fab1 | |
parent | 1392489b609f2843115d8a6be3fcabaef6845f52 [diff] |
fix: Validation for dates (#21886)
diff --git a/erpnext/hr/doctype/upload_attendance/upload_attendance.py b/erpnext/hr/doctype/upload_attendance/upload_attendance.py index 61faea1..edf05e8 100644 --- a/erpnext/hr/doctype/upload_attendance/upload_attendance.py +++ b/erpnext/hr/doctype/upload_attendance/upload_attendance.py
@@ -22,6 +22,9 @@ args = frappe.local.form_dict + if getdate(args.from_date) > getdate(args.to_date): + frappe.throw(_("To Date should be greater than From Date")) + w = UnicodeWriter() w = add_header(w)