mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 01:34:10 +00:00
[fix] remove gstr2 fields from Sales Invoice and Delivery Note too (#13047)
This commit is contained in:
@@ -13,6 +13,7 @@ def execute():
|
||||
set reqd = 0, `default` = ''
|
||||
where fieldname = 'reason_for_issuing_document'
|
||||
""")
|
||||
|
||||
frappe.db.sql("""delete from `tabCustom Field` where dt = 'Purchase Invoice'
|
||||
and fieldname in ('port_code', 'shipping_bill_number', 'shipping_bill_date')""")
|
||||
|
||||
for doctype in ["Sales Invoice", "Delivery Note", "Purchase Invoice"]:
|
||||
frappe.db.sql("""delete from `tabCustom Field` where dt = %s
|
||||
and fieldname in ('port_code', 'shipping_bill_number', 'shipping_bill_date')""", doctype)
|
||||
Reference in New Issue
Block a user