mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 03:29:16 +00:00
fix: Validation Error message on Prepared Report. (#19640)
Give the user the reason why he has to use filters.
This commit is contained in:
@@ -261,7 +261,7 @@ def validate_filters(filters):
|
|||||||
if not (filters.get("item_code") or filters.get("warehouse")):
|
if not (filters.get("item_code") or filters.get("warehouse")):
|
||||||
sle_count = flt(frappe.db.sql("""select count(name) from `tabStock Ledger Entry`""")[0][0])
|
sle_count = flt(frappe.db.sql("""select count(name) from `tabStock Ledger Entry`""")[0][0])
|
||||||
if sle_count > 500000:
|
if sle_count > 500000:
|
||||||
frappe.throw(_("Please set filter based on Item or Warehouse"))
|
frappe.throw(_("Please set filter based on Item or Warehouse due to a large amount of entries."))
|
||||||
|
|
||||||
def get_variants_attributes():
|
def get_variants_attributes():
|
||||||
'''Return all item variant attributes.'''
|
'''Return all item variant attributes.'''
|
||||||
|
|||||||
Reference in New Issue
Block a user