From 2248276fe9b2b8ebb041c0758097aa5c03823d0f Mon Sep 17 00:00:00 2001 From: Rucha Mahabal Date: Thu, 7 Jul 2022 13:48:59 +0530 Subject: [PATCH] chore: Remove gratuity rule patch --- erpnext/patches.txt | 1 - .../setup_gratuity_rule_for_india_and_uae.py | 19 ------------------- 2 files changed, 20 deletions(-) delete mode 100644 erpnext/patches/v13_0/setup_gratuity_rule_for_india_and_uae.py diff --git a/erpnext/patches.txt b/erpnext/patches.txt index 34f8b442e2..b5711bc9dd 100644 --- a/erpnext/patches.txt +++ b/erpnext/patches.txt @@ -199,7 +199,6 @@ erpnext.patches.v13_0.item_reposting_for_incorrect_sl_and_gl erpnext.patches.v13_0.delete_old_bank_reconciliation_doctypes erpnext.patches.v13_0.update_vehicle_no_reqd_condition erpnext.patches.v13_0.rename_membership_settings_to_non_profit_settings -erpnext.patches.v13_0.setup_gratuity_rule_for_india_and_uae erpnext.patches.v13_0.setup_uae_vat_fields execute:frappe.db.set_value('System Settings', None, 'app_name', 'ERPNext') erpnext.patches.v12_0.purchase_receipt_status diff --git a/erpnext/patches/v13_0/setup_gratuity_rule_for_india_and_uae.py b/erpnext/patches/v13_0/setup_gratuity_rule_for_india_and_uae.py deleted file mode 100644 index 093e8a7646..0000000000 --- a/erpnext/patches/v13_0/setup_gratuity_rule_for_india_and_uae.py +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (c) 2019, Frappe and Contributors -# License: GNU General Public License v3. See license.txt - - -import frappe - - -def execute(): - frappe.reload_doc("payroll", "doctype", "gratuity_rule") - frappe.reload_doc("payroll", "doctype", "gratuity_rule_slab") - frappe.reload_doc("payroll", "doctype", "gratuity_applicable_component") - if frappe.db.exists("Company", {"country": "India"}): - from erpnext.regional.india.setup import create_gratuity_rule - - create_gratuity_rule() - if frappe.db.exists("Company", {"country": "United Arab Emirates"}): - from erpnext.regional.united_arab_emirates.setup import create_gratuity_rule - - create_gratuity_rule()