[fix] remove gstr2 fields from Sales Invoice and Delivery Note too (#13047)
diff --git a/erpnext/patches/v10_0/added_extra_gst_custom_field_in_gstr2.py b/erpnext/patches/v10_0/added_extra_gst_custom_field_in_gstr2.py
index 185e20d..d48c288 100644
--- a/erpnext/patches/v10_0/added_extra_gst_custom_field_in_gstr2.py
+++ b/erpnext/patches/v10_0/added_extra_gst_custom_field_in_gstr2.py
@@ -13,6 +13,7 @@
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')""")
\ No newline at end of file
+
+ 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)
\ No newline at end of file