mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-13 22:51:49 +00:00
Co-authored-by: Diptanil Saha <diptanil@frappe.io> Co-authored-by: Wolfram Schmidt <wolfram.schmidt@phamos.eu> fix(budget): ambiguous error message for budget assignment validation (#56390)
This commit is contained in:
@@ -159,9 +159,9 @@ class Budget(Document):
|
|||||||
frappe.throw(_("Account {0} does not belong to company {1}").format(self.account, self.company))
|
frappe.throw(_("Account {0} does not belong to company {1}").format(self.account, self.company))
|
||||||
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").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):
|
def set_null_value(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user