mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-28 17:34:47 +00:00
fix(patch): reload tax category (#20308)
This commit is contained in:
@@ -57,7 +57,7 @@
|
|||||||
"issingle": 0,
|
"issingle": 0,
|
||||||
"istable": 0,
|
"istable": 0,
|
||||||
"max_attachments": 0,
|
"max_attachments": 0,
|
||||||
"modified": "2018-11-22 23:38:39.668804",
|
"modified": "2020-01-15 17:14:28.951793",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Accounts",
|
"module": "Accounts",
|
||||||
"name": "Tax Category",
|
"name": "Tax Category",
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ def execute():
|
|||||||
frappe.reload_doc('hr', 'doctype', 'employee_tax_exemption_declaration_category')
|
frappe.reload_doc('hr', 'doctype', 'employee_tax_exemption_declaration_category')
|
||||||
frappe.reload_doc('hr', 'doctype', 'employee_tax_exemption_proof_submission_detail')
|
frappe.reload_doc('hr', 'doctype', 'employee_tax_exemption_proof_submission_detail')
|
||||||
|
|
||||||
|
frappe.reload_doc('accounts', 'doctype', 'tax_category')
|
||||||
|
|
||||||
for doctype in ["Sales Invoice", "Delivery Note", "Purchase Invoice"]:
|
for doctype in ["Sales Invoice", "Delivery Note", "Purchase Invoice"]:
|
||||||
frappe.db.sql("""delete from `tabCustom Field` where dt = %s
|
frappe.db.sql("""delete from `tabCustom Field` where dt = %s
|
||||||
and fieldname in ('port_code', 'shipping_bill_number', 'shipping_bill_date')""", doctype)
|
and fieldname in ('port_code', 'shipping_bill_number', 'shipping_bill_date')""", doctype)
|
||||||
|
|||||||
Reference in New Issue
Block a user