From 1b94ed84757d6505f4677ebf77abbbe62593d70e Mon Sep 17 00:00:00 2001 From: Vishakh Desai Date: Fri, 16 Aug 2024 16:30:08 +0530 Subject: [PATCH] fix: ignore validate_for_invalid_account_type for SEZ --- india_compliance/gst_india/overrides/transaction.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/india_compliance/gst_india/overrides/transaction.py b/india_compliance/gst_india/overrides/transaction.py index 72755accb..0cc4aa14e 100644 --- a/india_compliance/gst_india/overrides/transaction.py +++ b/india_compliance/gst_india/overrides/transaction.py @@ -435,6 +435,12 @@ def validate_for_invalid_account_type(self): - Intra-State supplies should not have IGST account - If Intra-State, ensure both CGST and SGST accounts are used """ + if ( + frappe.db.get_value("Address", self.doc.company_address, "gst_category") + == "SEZ" + ): + return + is_inter_state = is_inter_state_supply(self.doc) for row in self.gst_tax_rows: