fix: Validation for dates (#21886)

This commit is contained in:
Anurag Mishra 2020-05-25 18:39:19 +05:30 committed by GitHub
parent 1392489b60
commit 8a1cf45473
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,9 @@ def get_template():
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)