mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-12 17:51:20 +00:00
[fix] remove gstr2 fields from Sales Invoice and Delivery Note too (#13047)
This commit is contained in:
@@ -14,5 +14,6 @@ def execute():
|
|||||||
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)
|
||||||
Reference in New Issue
Block a user