From 7e3ef2f222e78a6aaf83bc381bf38d8f25dc1c51 Mon Sep 17 00:00:00 2001 From: ljain112 Date: Mon, 31 Jul 2023 16:18:58 +0530 Subject: [PATCH 1/2] fix: correct place of supply in sandbox mode --- india_compliance/gst_india/utils/e_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/india_compliance/gst_india/utils/e_invoice.py b/india_compliance/gst_india/utils/e_invoice.py index 49362a59a..80e652639 100644 --- a/india_compliance/gst_india/utils/e_invoice.py +++ b/india_compliance/gst_india/utils/e_invoice.py @@ -545,7 +545,7 @@ def get_invoice_data(self): if self.transaction_details.total_igst_amount > 0: self.transaction_details.place_of_supply = "36" else: - self.transaction_details.place_of_supply = "01" + self.transaction_details.place_of_supply = "02" if self.doc.is_return: self.dispatch_address, self.shipping_address = ( From 48367cff920958823c455ed50b252c02060765d1 Mon Sep 17 00:00:00 2001 From: ljain112 Date: Mon, 31 Jul 2023 17:34:24 +0530 Subject: [PATCH 2/2] fix: update place of supply in test records --- india_compliance/gst_india/data/test_e_invoice.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/india_compliance/gst_india/data/test_e_invoice.json b/india_compliance/gst_india/data/test_e_invoice.json index 2ca957dba..29db98e8a 100644 --- a/india_compliance/gst_india/data/test_e_invoice.json +++ b/india_compliance/gst_india/data/test_e_invoice.json @@ -10,7 +10,7 @@ "LglNm": "_Test Registered Customer", "Loc": "Test City", "Pin": 500055, - "Pos": "01", + "Pos": "02", "Stcd": "36", "TrdNm": "_Test Registered Customer" }, @@ -116,7 +116,7 @@ "LglNm": "_Test Registered Customer", "Loc": "Test City", "Pin": 500055, - "Pos": "01", + "Pos": "02", "Stcd": "36", "TrdNm": "_Test Registered Customer" }, @@ -221,7 +221,7 @@ "LglNm": "_Test Registered Customer", "Loc": "Test City", "Pin": 500055, - "Pos": "01", + "Pos": "02", "Stcd": "36", "TrdNm": "_Test Registered Customer" }, @@ -354,7 +354,7 @@ "LglNm": "_Test Registered Customer", "Loc": "Test City", "Pin": 500055, - "Pos": "01", + "Pos": "02", "Stcd": "36", "TrdNm": "_Test Registered Customer" },