fix: SEZ Without Payment of Tax don't add tax rows
taxes were added even when gst_category was SEZ and export_type was Without Payment of Tax
This commit is contained in:
@@ -257,9 +257,16 @@ def get_regional_address_details(party_details, doctype, company):
|
|||||||
|
|
||||||
update_party_details(party_details, doctype)
|
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)
|
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_and_charges = ""
|
||||||
party_details.taxes = []
|
party_details.taxes = []
|
||||||
return party_details
|
return party_details
|
||||||
|
|||||||
Reference in New Issue
Block a user