Force item_tax_rate on setting item details server-side
This commit is contained in:
parent
f6a83daae6
commit
648bd15b2a
@ -15,7 +15,7 @@ from erpnext.accounts.party import get_party_account_currency, validate_party_fr
|
||||
from erpnext.exceptions import InvalidCurrency
|
||||
from six import text_type
|
||||
|
||||
force_item_fields = ("item_group", "brand", "stock_uom", "is_fixed_asset")
|
||||
force_item_fields = ("item_group", "brand", "stock_uom", "is_fixed_asset", "item_tax_rate")
|
||||
|
||||
|
||||
class AccountsController(TransactionBase):
|
||||
|
@ -45,7 +45,8 @@ def get_item_details(args):
|
||||
out = get_basic_details(args, item)
|
||||
|
||||
get_item_tax_template(args, item, out)
|
||||
out["item_tax_rate"] = get_item_tax_map(args.company, out.get("item_tax_template"), as_json=True)
|
||||
out["item_tax_rate"] = get_item_tax_map(args.company, args.get("item_tax_template") if out.get("item_tax_template") is None \
|
||||
else out.get("item_tax_template"), as_json=True)
|
||||
|
||||
get_party_item_code(args, item, out)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user