Skip to content

Commit

Permalink
fix: Remove unused "reason_for_issuing_document" field
Browse files Browse the repository at this point in the history
(cherry picked from commit 09e9623)

# Conflicts:
#	india_compliance/patches.txt
  • Loading branch information
vorasmit authored and mergify[bot] committed Aug 24, 2024
1 parent ba281a2 commit 74c21a0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 17 deletions.
15 changes: 0 additions & 15 deletions india_compliance/gst_india/constants/custom_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,21 +543,6 @@
),
"translatable": 0,
},
{
"fieldname": "reason_for_issuing_document",
"label": "Reason For Issuing Document",
"fieldtype": "Select",
"insert_after": "return_against",
"print_hide": 1,
"depends_on": "eval:doc.is_return == 1",
"length": 45,
"options": (
"\n01-Sales Return\n02-Post Sale Discount\n03-Deficiency in"
" services\n04-Correction in Invoice\n05-Change in POS\n06-Finalization"
" of Provisional assessment\n07-Others"
),
"translatable": 0,
},
],
(
"Sales Taxes and Charges",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ def test_advance_payment_entry_with_returns(self):
is_in_state=1,
is_return=1,
qty=-1,
reason_for_issuing_document="01-Sales Return",
return_against=invoice_doc.name,
)

Expand Down
1 change: 0 additions & 1 deletion india_compliance/gst_india/report/gstr_1/gstr_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ def __init__(self, filters=None):
port_code,
shipping_bill_number,
shipping_bill_date,
reason_for_issuing_document,
company_gstin,
(
CASE
Expand Down
7 changes: 7 additions & 0 deletions india_compliance/patches.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@ execute:import frappe; frappe.delete_doc_if_exists("DocType", "GSTIN")

[post_model_sync]
india_compliance.patches.v14.set_default_for_overridden_accounts_setting
<<<<<<< HEAD
execute:from india_compliance.gst_india.setup import create_custom_fields; create_custom_fields() #51
execute:from india_compliance.gst_india.setup import create_property_setters; create_property_setters() #7
execute:from india_compliance.income_tax_india.setup import create_custom_fields; create_custom_fields() #1
india_compliance.patches.post_install.remove_old_fields #1
=======
execute:from india_compliance.gst_india.setup import create_custom_fields; create_custom_fields() #54
execute:from india_compliance.gst_india.setup import create_property_setters; create_property_setters() #8
execute:from india_compliance.income_tax_india.setup import create_custom_fields; create_custom_fields() #2
india_compliance.patches.post_install.remove_old_fields #2
>>>>>>> 09e96236 (fix: Remove unused "reason_for_issuing_document" field)
india_compliance.patches.post_install.set_gst_tax_type
india_compliance.patches.post_install.set_gst_tax_type_in_journal_entry
india_compliance.patches.post_install.update_company_gstin
Expand Down
1 change: 1 addition & 0 deletions india_compliance/patches/post_install/remove_old_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def execute():
delete_old_fields("pan_details", "Company")
delete_old_fields("export_type", ("Customer", "Supplier"))
delete_old_fields("company_address", "Journal Entry")
delete_old_fields("reason_for_issuing_document", "Sales Invoice")

# Field renamed post release
delete_old_fields(
Expand Down

0 comments on commit 74c21a0

Please sign in to comment.