fix(budget): ambiguous error message for budget assignment validation (backport #56390) (#56391)

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:
mergify[bot]
2026-06-23 19:49:07 +00:00
committed by GitHub
parent 094bdf2d3e
commit 53a11229ec

View File

@@ -103,8 +103,8 @@ class Budget(Document):
elif account_details.report_type != "Profit and Loss":
frappe.throw(
_(
"Budget cannot be assigned against {0}, as it's not an Income or Expense account"
).format(d.account)
"Budget cannot be assigned against {0}, as its Root Type is not of Income or Expense"
).format(self.account)
)
if d.account in account_list: