mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 23:49:19 +00:00
fix: tuple index out of range error
This commit is contained in:
@@ -620,7 +620,7 @@ def get_asset_account(account_name, asset=None, asset_category=None, company=Non
|
|||||||
|
|
||||||
if not account:
|
if not account:
|
||||||
if not asset_category:
|
if not asset_category:
|
||||||
frappe.throw(_("Set {0} in company {2}").format(account_name.replace('_', ' ').title(), company))
|
frappe.throw(_("Set {0} in company {1}").format(account_name.replace('_', ' ').title(), company))
|
||||||
else:
|
else:
|
||||||
frappe.throw(_("Set {0} in asset category {1} or company {2}")
|
frappe.throw(_("Set {0} in asset category {1} or company {2}")
|
||||||
.format(account_name.replace('_', ' ').title(), asset_category, company))
|
.format(account_name.replace('_', ' ').title(), asset_category, company))
|
||||||
|
|||||||
Reference in New Issue
Block a user