Merge pull request #20034 from rohitwaghchaure/fixed_patch_for_add_export_type_field_in_party_master
fix: patch
This commit is contained in:
commit
1faef279cf
@ -27,6 +27,8 @@ def execute():
|
||||
tax_category = inter_state_category.name
|
||||
|
||||
for doctype in ('Sales Taxes and Charges Template', 'Purchase Taxes and Charges Template'):
|
||||
if not frappe.get_meta(doctype).has_field('is_inter_state'): continue
|
||||
|
||||
template = frappe.db.get_value(doctype, {'is_inter_state': 1, 'disabled': 0}, ['name'])
|
||||
if template:
|
||||
frappe.db.set_value(doctype, template, 'tax_category', tax_category)
|
||||
|
Loading…
x
Reference in New Issue
Block a user