fix(regional): set proper state code in ewaybill JSON when gst_category is SEZ

This commit is contained in:
Smit Vora 2020-11-18 20:58:59 +05:30
parent 67ba0462e9
commit bbe4933a52

View File

@ -516,6 +516,9 @@ def get_address_details(data, doc, company_address, billing_address):
data.transType = 1
data.actualToStateCode = data.toStateCode
shipping_address = billing_address
if doc.gst_category == 'SEZ':
data.toStateCode = 99
return data