commit | bbe4933a523b737d4537827685de508cae8dac64 | [log] [tgz] |
---|---|---|
author | Smit Vora <mailsmitvora@gmail.com> | Wed Nov 18 20:58:59 2020 +0530 |
committer | Smit Vora <mailsmitvora@gmail.com> | Wed Nov 18 21:00:09 2020 +0530 |
tree | 73903403550604eb9886f9bb2d3052396c6c3034 | |
parent | 67ba0462e933c5485ae817145bb4431c35fcc313 [diff] |
fix(regional): set proper state code in ewaybill JSON when gst_category is SEZ
diff --git a/erpnext/regional/india/utils.py b/erpnext/regional/india/utils.py index 6164e06..5458001 100644 --- a/erpnext/regional/india/utils.py +++ b/erpnext/regional/india/utils.py
@@ -516,6 +516,9 @@ data.transType = 1 data.actualToStateCode = data.toStateCode shipping_address = billing_address + + if doc.gst_category == 'SEZ': + data.toStateCode = 99 return data