mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 22:19:18 +00:00
committed by
Mergify
parent
1ea3daeb17
commit
f479675ce6
@@ -47,7 +47,7 @@ def get_columns(filters, trans):
|
|||||||
def validate_filters(filters):
|
def validate_filters(filters):
|
||||||
for f in ["Fiscal Year", "Based On", "Period", "Company"]:
|
for f in ["Fiscal Year", "Based On", "Period", "Company"]:
|
||||||
if not filters.get(f.lower().replace(" ", "_")):
|
if not filters.get(f.lower().replace(" ", "_")):
|
||||||
frappe.throw(_("{0} is mandatory").format(f))
|
frappe.throw(_("{0} is mandatory").format(_(f)))
|
||||||
|
|
||||||
if not frappe.db.exists("Fiscal Year", filters.get("fiscal_year")):
|
if not frappe.db.exists("Fiscal Year", filters.get("fiscal_year")):
|
||||||
frappe.throw(_("Fiscal Year {0} Does Not Exist").format(filters.get("fiscal_year")))
|
frappe.throw(_("Fiscal Year {0} Does Not Exist").format(filters.get("fiscal_year")))
|
||||||
|
|||||||
Reference in New Issue
Block a user