fix: Validation for dates (#21887)

This commit is contained in:
Anurag Mishra
2020-05-25 18:39:26 +05:30
committed by GitHub
parent 4e70ecb97d
commit bbec37f713

View File

@@ -20,6 +20,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)