From d7cb269e0c569eaf4e9793a44a313830983d4ee5 Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Mon, 2 May 2022 19:23:43 +0530 Subject: [PATCH 1/2] fix: Supply type for overseas invoices with payment of tax --- erpnext/regional/india/e_invoice/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erpnext/regional/india/e_invoice/utils.py b/erpnext/regional/india/e_invoice/utils.py index 0f73c5f9bc..aaf850c5c6 100644 --- a/erpnext/regional/india/e_invoice/utils.py +++ b/erpnext/regional/india/e_invoice/utils.py @@ -129,7 +129,10 @@ def get_transaction_details(invoice): elif invoice.gst_category == "SEZ": supply_type = "SEZWOP" elif invoice.gst_category == "Overseas": - supply_type = "EXPWOP" + if invoice.export_type == "Without Payment of Tax": + supply_type = "EXPWOP" + else: + supply_type = "EXPWP" elif invoice.gst_category == "Deemed Export": supply_type = "DEXP" From c8aa77285e9498250d290152d501e5349715177f Mon Sep 17 00:00:00 2001 From: Saqib Ansari Date: Mon, 2 May 2022 21:15:54 +0530 Subject: [PATCH 2/2] fix: supply type for sez invoices with payment of tax --- erpnext/regional/india/e_invoice/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erpnext/regional/india/e_invoice/utils.py b/erpnext/regional/india/e_invoice/utils.py index aaf850c5c6..0aff495f27 100644 --- a/erpnext/regional/india/e_invoice/utils.py +++ b/erpnext/regional/india/e_invoice/utils.py @@ -127,7 +127,10 @@ def get_transaction_details(invoice): if invoice.gst_category == "Registered Regular": supply_type = "B2B" elif invoice.gst_category == "SEZ": - supply_type = "SEZWOP" + if invoice.export_type == "Without Payment of Tax": + supply_type = "SEZWOP" + else: + supply_type = "SEZWP" elif invoice.gst_category == "Overseas": if invoice.export_type == "Without Payment of Tax": supply_type = "EXPWOP"