fix: update item_tax_template account_type server-side validation

This commit is contained in:
Saif Ur Rehman 2018-12-29 02:27:03 +05:00
parent eeead1d777
commit f6a83daae6

View File

@ -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))