brotherton-erpnext/erpnext/patches/v13_0/create_gst_payment_entry_fields.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
450 B
Python
Raw Normal View History

# Copyright (c) 2021, Frappe and Contributors
# License: GNU General Public License v3. See license.txt
import frappe
# Patch kept for users outside India
def execute():
if frappe.db.exists("Company", {"country": "India"}):
return
for field in (
"gst_section",
"company_address",
"company_gstin",
"place_of_supply",
"customer_address",
"customer_gstin",
):
frappe.delete_doc_if_exists("Custom Field", f"Payment Entry-{field}")