[fix] remove gstr2 fields from Sales Invoice and Delivery Note too (#13047)
This commit is contained in:
parent
2949e9c5dc
commit
d8cd54dfd0
@ -13,6 +13,7 @@ def execute():
|
|||||||
set reqd = 0, `default` = ''
|
set reqd = 0, `default` = ''
|
||||||
where fieldname = 'reason_for_issuing_document'
|
where fieldname = 'reason_for_issuing_document'
|
||||||
""")
|
""")
|
||||||
|
|
||||||
frappe.db.sql("""delete from `tabCustom Field` where dt = 'Purchase Invoice'
|
for doctype in ["Sales Invoice", "Delivery Note", "Purchase Invoice"]:
|
||||||
and fieldname in ('port_code', 'shipping_bill_number', 'shipping_bill_date')""")
|
frappe.db.sql("""delete from `tabCustom Field` where dt = %s
|
||||||
|
and fieldname in ('port_code', 'shipping_bill_number', 'shipping_bill_date')""", doctype)
|
Loading…
x
Reference in New Issue
Block a user