mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
fix: Validation for dates (#21886)
This commit is contained in:
@@ -22,6 +22,9 @@ def get_template():
|
|||||||
|
|
||||||
args = frappe.local.form_dict
|
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 = UnicodeWriter()
|
||||||
w = add_header(w)
|
w = add_header(w)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user