Merge pull request #32369 from maharshivpatel/fix-taxes-sez-without-payment-of-tax

fix: SEZ Without Payment of Tax don't add tax rows
This commit is contained in:
Deepesh Garg
2022-10-01 16:13:11 +05:30
committed by GitHub

View File

@@ -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