fix: Validation Error message on Prepared Report. (#19640)

Give the user the reason why he has to use filters.
This commit is contained in:
Marica
2019-11-22 14:38:53 +05:30
committed by Nabin Hait
parent c8369c10ff
commit dafdc6035a

View File

@@ -261,7 +261,7 @@ def validate_filters(filters):
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])
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():
'''Return all item variant attributes.'''