mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-14 15:11:52 +00:00
Co-authored-by: Wolfram Schmidt <wolfram.schmidt@phamos.eu> Co-authored-by: Diptanil Saha <diptanil@frappe.io> fix(budget): ambiguous error message for budget assignment validation (#56390)
This commit is contained in:
@@ -103,8 +103,8 @@ class Budget(Document):
|
|||||||
elif account_details.report_type != "Profit and Loss":
|
elif account_details.report_type != "Profit and Loss":
|
||||||
frappe.throw(
|
frappe.throw(
|
||||||
_(
|
_(
|
||||||
"Budget cannot be assigned against {0}, as it's not an Income or Expense account"
|
"Budget cannot be assigned against {0}, as its Root Type is not of Income or Expense"
|
||||||
).format(d.account)
|
).format(self.account)
|
||||||
)
|
)
|
||||||
|
|
||||||
if d.account in account_list:
|
if d.account in account_list:
|
||||||
|
|||||||
Reference in New Issue
Block a user