fix: add_deduct_tax in Purchase Taxes setup (#25757)
This commit is contained in:
parent
49c20f4f8d
commit
6038663bf8
@ -106,6 +106,9 @@ def make_taxes_and_charges_template(company_name, doctype, template):
|
|||||||
'charge_type': 'On Net Total'
|
'charge_type': 'On Net Total'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if doctype == 'Purchase Taxes and Charges Template':
|
||||||
|
tax_row_defaults['add_deduct_tax'] = 'Add'
|
||||||
|
|
||||||
# if account_head is a dict, search or create the account and get it's name
|
# if account_head is a dict, search or create the account and get it's name
|
||||||
if isinstance(account_data, dict):
|
if isinstance(account_data, dict):
|
||||||
tax_row_defaults['description'] = '{0} @ {1}'.format(account_data.get('account_name'), account_data.get('tax_rate'))
|
tax_row_defaults['description'] = '{0} @ {1}'.format(account_data.get('account_name'), account_data.get('tax_rate'))
|
||||||
|
Loading…
Reference in New Issue
Block a user