commit | c4382abc034eae32410a92a4da15c80b9a386acd | [log] [tgz] |
---|---|---|
author | rohitwaghchaure <rohitw1991@gmail.com> | Wed Jun 24 10:49:21 2020 +0530 |
committer | GitHub <noreply@github.com> | Wed Jun 24 10:49:21 2020 +0530 |
tree | 3d30a64a638eff5f7c05897cfaa3ffa4cab2586d | |
parent | 7af7bb8311b7d3f376d3299fe3e542401c1af63d [diff] | |
parent | f5b7bd9dcbe389cd66373ff8feabd333196ecba7 [diff] |
Merge pull request #22410 from kennethsequeira/item_report_date fix: add error prompt for wrong date range
diff --git a/erpnext/selling/report/item_wise_sales_history/item_wise_sales_history.py b/erpnext/selling/report/item_wise_sales_history/item_wise_sales_history.py index bd59be6..1bc4657 100644 --- a/erpnext/selling/report/item_wise_sales_history/item_wise_sales_history.py +++ b/erpnext/selling/report/item_wise_sales_history/item_wise_sales_history.py
@@ -9,6 +9,9 @@ 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)