We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00330f5 commit 7f49b57Copy full SHA for 7f49b57
erpnext/patches/v10_0/added_extra_gst_custom_field_in_gstr2.py
@@ -6,6 +6,10 @@ def execute():
6
if not company:
7
return
8
9
+ for doctype in ["Sales Invoice", "Delivery Note", "Purchase Invoice"]:
10
+ frappe.db.sql("""delete from `tabCustom Field` where dt = %s
11
+ and fieldname in ('port_code', 'shipping_bill_number', 'shipping_bill_date')""", doctype)
12
+
13
make_custom_fields()
14
15
frappe.db.sql("""
@@ -14,6 +18,4 @@ def execute():
18
where fieldname = 'reason_for_issuing_document'
19
""")
16
20
17
- 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)
21
0 commit comments