From f6a83daae6c311ba7c4f0af822a42b11f84fb3f1 Mon Sep 17 00:00:00 2001 From: Saif Ur Rehman Date: Sat, 29 Dec 2018 02:27:03 +0500 Subject: [PATCH] fix: update item_tax_template account_type server-side validation --- erpnext/accounts/doctype/item_tax_template/item_tax_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/item_tax_template/item_tax_template.py b/erpnext/accounts/doctype/item_tax_template/item_tax_template.py index 87ee435cc43..e77481d44f5 100644 --- a/erpnext/accounts/doctype/item_tax_template/item_tax_template.py +++ b/erpnext/accounts/doctype/item_tax_template/item_tax_template.py @@ -18,7 +18,7 @@ class ItemTaxTemplate(Document): if d.tax_type: account_type = frappe.db.get_value("Account", d.tax_type, "account_type") - if account_type not in ['Tax', 'Chargeable', 'Income Account', 'Expense Account']: + if account_type not in ['Tax', 'Chargeable', 'Income Account', 'Expense Account', 'Expenses Included In Valuation']: frappe.throw( _("Item Tax Row {0} must have account of type Tax or Income or Expense or Chargeable").format( d.idx))