mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-26 14:41:42 +01:00
fix: e-Invoicing for SEZ Customer(v13) (#33796)
This commit is contained in:
@@ -71,7 +71,11 @@ def validate_eligibility(doc):
|
|||||||
|
|
||||||
# if export invoice, then taxes can be empty
|
# if export invoice, then taxes can be empty
|
||||||
# invoice can only be ineligible if no taxes applied and is not an export invoice
|
# 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"))
|
has_non_gst_item = any(d for d in doc.get("items", []) if d.get("is_non_gst"))
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
|||||||
Reference in New Issue
Block a user