Skip to content

Commit

Permalink
fix: use shipping address instread of port address for e-invoice (#2799)
Browse files Browse the repository at this point in the history
* fix: use shipping address instread of port address for e-invoice

* test: remove port address from foreign transaction

---------

Co-authored-by: Sanket322 <shahsanket322003.com>
  • Loading branch information
Sanket322 authored Dec 13, 2024
1 parent 27a2a42 commit 703df38
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
9 changes: 0 additions & 9 deletions india_compliance/gst_india/data/test_e_invoice.json
Original file line number Diff line number Diff line change
Expand Up @@ -664,15 +664,6 @@
"Stcd": "02",
"TrdNm": "_Test Indian Registered Company"
},
"ShipDtls": {
"Gstin": "URP",
"LglNm": "Test Indian Unregistered Company",
"TrdNm": "Test Indian Unregistered Company",
"Addr1": "Test Address - 2",
"Loc": "Test City",
"Pin": 380015,
"Stcd": "24"
},
"TranDtls": {
"RegRev": "N",
"SupTyp": "EXPWOP",
Expand Down
6 changes: 1 addition & 5 deletions india_compliance/gst_india/utils/e_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,11 +766,7 @@ def set_party_address_details(self):
self.doc.company_address, validate_gstin=True
)

ship_to_address = (
self.doc.port_address
if (is_foreign_doc(self.doc) and self.doc.port_address)
else self.doc.shipping_address_name
)
ship_to_address = self.doc.shipping_address_name

# Defaults
self.shipping_address = None
Expand Down

0 comments on commit 703df38

Please sign in to comment.