From b356dbd59edfa869850a60706cdc08305acd5283 Mon Sep 17 00:00:00 2001 From: Diptanil Saha Date: Tue, 23 Jun 2026 22:48:08 +0530 Subject: [PATCH] fix(budget): ambiguous error message for budget assignment validation (#56390) Co-authored-by: Wolfram Schmidt --- erpnext/accounts/doctype/budget/budget.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/erpnext/accounts/doctype/budget/budget.py b/erpnext/accounts/doctype/budget/budget.py index 98ba61be98d..01f6b172b73 100644 --- a/erpnext/accounts/doctype/budget/budget.py +++ b/erpnext/accounts/doctype/budget/budget.py @@ -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):