fix: patch
This commit is contained in:
parent
7e7cad8296
commit
0dba4345f3
@ -27,6 +27,8 @@ def execute():
|
|||||||
tax_category = inter_state_category.name
|
tax_category = inter_state_category.name
|
||||||
|
|
||||||
for doctype in ('Sales Taxes and Charges Template', 'Purchase Taxes and Charges Template'):
|
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'])
|
template = frappe.db.get_value(doctype, {'is_inter_state': 1, 'disabled': 0}, ['name'])
|
||||||
if template:
|
if template:
|
||||||
frappe.db.set_value(doctype, template, 'tax_category', tax_category)
|
frappe.db.set_value(doctype, template, 'tax_category', tax_category)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user