mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-19 02:04:50 +00:00
fix: add error prompt for wrong date range
(cherry picked from commit f5b7bd9dcb)
This commit is contained in:
committed by
mergify-bot
parent
1a3fd763ac
commit
bf81b42219
@@ -9,6 +9,9 @@ from frappe.utils.nestedset import get_descendants_of
|
||||
|
||||
def execute(filters=None):
|
||||
filters = frappe._dict(filters or {})
|
||||
if filters.from_date > filters.to_date:
|
||||
frappe.throw(_('From Date cannot be greater than To Date'))
|
||||
|
||||
columns = get_columns(filters)
|
||||
data = get_data(filters)
|
||||
return columns, data
|
||||
|
||||
Reference in New Issue
Block a user