fix: e-Invoicing for SEZ Customer(v13) (#33796)

This commit is contained in:
Deepesh Garg
2023-01-25 08:57:52 +05:30
committed by GitHub
parent 28f5d28201
commit 1b11566485

View File

@@ -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 (