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

This commit is contained in:
Smit Vora
2020-11-18 21:03:45 +05:30
parent d920f9da59
commit 3e36d774d2

View File

@@ -500,6 +500,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