From 1b115664859016ae849922ecdb782937d8c51200 Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Wed, 25 Jan 2023 08:57:52 +0530 Subject: [PATCH] fix: e-Invoicing for SEZ Customer(v13) (#33796) --- erpnext/regional/india/e_invoice/utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/erpnext/regional/india/e_invoice/utils.py b/erpnext/regional/india/e_invoice/utils.py index 45ceb1566c6..251404a46a1 100644 --- a/erpnext/regional/india/e_invoice/utils.py +++ b/erpnext/regional/india/e_invoice/utils.py @@ -71,7 +71,11 @@ def validate_eligibility(doc): # if export invoice, then taxes can be empty # invoice can only be ineligible if no taxes applied and is not an export invoice - no_taxes_applied = not doc.get("taxes") and not doc.get("gst_category") == "Overseas" + no_taxes_applied = ( + not doc.get("taxes") + and not doc.get("gst_category") == "Overseas" + and not doc.get("gst_category") == "SEZ" + ) has_non_gst_item = any(d for d in doc.get("items", []) if d.get("is_non_gst")) if (