fix: Validation for dates (#21886)
This commit is contained in:
parent
1392489b60
commit
8a1cf45473
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user