mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 11:49:10 +00:00
fix: do not add gst fields if no indian company
(cherry picked from commit 43038aab79)
# Conflicts:
# erpnext/patches.txt
This commit is contained in:
@@ -311,10 +311,15 @@ execute:frappe.reload_doc("erpnext_integrations", "doctype", "Product Tax Catego
|
|||||||
erpnext.patches.v13_0.custom_fields_for_taxjar_integration #08-11-2021
|
erpnext.patches.v13_0.custom_fields_for_taxjar_integration #08-11-2021
|
||||||
erpnext.patches.v13_0.set_operation_time_based_on_operating_cost
|
erpnext.patches.v13_0.set_operation_time_based_on_operating_cost
|
||||||
erpnext.patches.v13_0.validate_options_for_data_field
|
erpnext.patches.v13_0.validate_options_for_data_field
|
||||||
|
<<<<<<< HEAD
|
||||||
erpnext.patches.v13_0.create_website_items #30-09-2021
|
erpnext.patches.v13_0.create_website_items #30-09-2021
|
||||||
erpnext.patches.v13_0.populate_e_commerce_settings
|
erpnext.patches.v13_0.populate_e_commerce_settings
|
||||||
erpnext.patches.v13_0.make_homepage_products_website_items
|
erpnext.patches.v13_0.make_homepage_products_website_items
|
||||||
erpnext.patches.v13_0.update_dates_in_tax_withholding_category
|
erpnext.patches.v13_0.update_dates_in_tax_withholding_category
|
||||||
|
=======
|
||||||
|
erpnext.patches.v13_0.create_gst_payment_entry_fields #27-11-2021
|
||||||
|
erpnext.patches.v14_0.delete_shopify_doctypes
|
||||||
|
>>>>>>> 43038aab79 (fix: do not add gst fields if no indian company)
|
||||||
erpnext.patches.v13_0.fix_invoice_statuses
|
erpnext.patches.v13_0.fix_invoice_statuses
|
||||||
erpnext.patches.v13_0.replace_supplier_item_group_with_party_specific_item
|
erpnext.patches.v13_0.replace_supplier_item_group_with_party_specific_item
|
||||||
erpnext.patches.v13_0.gst_fields_for_pos_invoice
|
erpnext.patches.v13_0.gst_fields_for_pos_invoice
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ def execute():
|
|||||||
frappe.reload_doc('accounts', 'doctype', 'advance_taxes_and_charges')
|
frappe.reload_doc('accounts', 'doctype', 'advance_taxes_and_charges')
|
||||||
frappe.reload_doc('accounts', 'doctype', 'payment_entry')
|
frappe.reload_doc('accounts', 'doctype', 'payment_entry')
|
||||||
|
|
||||||
|
if frappe.db.exists('Company', {'country': 'India'}):
|
||||||
custom_fields = {
|
custom_fields = {
|
||||||
'Payment Entry': [
|
'Payment Entry': [
|
||||||
dict(fieldname='gst_section', label='GST Details', fieldtype='Section Break', insert_after='deductions',
|
dict(fieldname='gst_section', label='GST Details', fieldtype='Section Break', insert_after='deductions',
|
||||||
@@ -30,3 +31,7 @@ def execute():
|
|||||||
}
|
}
|
||||||
|
|
||||||
create_custom_fields(custom_fields, update=True)
|
create_custom_fields(custom_fields, update=True)
|
||||||
|
else:
|
||||||
|
fields = ['gst_section', 'company_address', 'company_gstin', 'place_of_supply', 'customer_address', 'customer_gstin']
|
||||||
|
for field in fields:
|
||||||
|
frappe.delete_doc_if_exists("Custom Field", f"Payment Entry-{field}")
|
||||||
Reference in New Issue
Block a user