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

Co-authored-by: Wolfram Schmidt <wolfram.schmidt@phamos.eu>
This commit is contained in:
Diptanil Saha
2026-06-23 22:48:08 +05:30
committed by GitHub
parent a0bbca166f
commit b356dbd59e

View File

@@ -162,9 +162,9 @@ class Budget(Document):
frappe.throw(_("Account {0} does not belong to company {1}").format(self.account, self.company))
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(
self.account
)
_(
"Budget cannot be assigned against {0}, as its Root Type is not of Income or Expense"
).format(self.account)
)
def set_null_value(self):