Skip to content

Commit

Permalink
fix: SEZ Without Payment of Tax don't add tax rows
Browse files Browse the repository at this point in the history
taxes were added even when gst_category was SEZ and export_type was Without Payment of Tax
  • Loading branch information
maharshivpatel committed Sep 27, 2022
1 parent 09cd480 commit a13eecc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion erpnext/regional/india/utils.py
Expand Up @@ -257,9 +257,16 @@ def get_regional_address_details(party_details, doctype, company):

update_party_details(party_details, doctype)

customer_gst_category = frappe.get_value(
"Customer", party_details.customer, ["gst_category", "export_type"]
)

party_details.place_of_supply = get_place_of_supply(party_details, doctype)

if is_internal_transfer(party_details, doctype):
if is_internal_transfer(party_details, doctype) or customer_gst_category == (
"SEZ",
"Without Payment of Tax",
):
party_details.taxes_and_charges = ""
party_details.taxes = []
return party_details
Expand Down

0 comments on commit a13eecc

Please sign in to comment.