# Copyright (c) 2021, Xhiveframework and Contributors
# License: GNU General Public License v3. See license.txt

import xhiveframework


# Patch kept for users outside India
def execute():
	if xhiveframework.db.exists("Company", {"country": "India"}):
		return

	for field in (
		"gst_section",
		"company_address",
		"company_gstin",
		"place_of_supply",
		"customer_address",
		"customer_gstin",
	):
		xhiveframework.delete_doc_if_exists("Custom Field", f"Payment Entry-{field}")
