From ed4368fa7b7e3367932eed863dfe0e9301ff5ed2 Mon Sep 17 00:00:00 2001 From: priyanshshah2442 Date: Mon, 1 Apr 2024 12:03:40 +0530 Subject: [PATCH 1/2] fix: B2C(Others) and B2C(Large) category and subcategory assignment --- india_compliance/gst_india/utils/gstr/gstr_1.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/india_compliance/gst_india/utils/gstr/gstr_1.py b/india_compliance/gst_india/utils/gstr/gstr_1.py index b4ea6e8eac..6d850b88bb 100644 --- a/india_compliance/gst_india/utils/gstr/gstr_1.py +++ b/india_compliance/gst_india/utils/gstr/gstr_1.py @@ -259,7 +259,7 @@ def is_b2cl_cn_dn(self, invoice): return (abs(invoice_total) > B2C_LIMIT) and self.is_inter_state(invoice) @cache_invoice_condition - def is_b2cl_invoice(self, invoice): + def is_b2cl_inv(self, invoice): return abs(invoice.total_amount) > B2C_LIMIT and self.is_inter_state(invoice) @@ -291,6 +291,7 @@ def is_b2cl_invoice(self, invoice): and not self.is_cn_dn(invoice) and not self.has_gstin_and_is_not_export(invoice) and not self.is_export(invoice) + and self.is_b2cl_inv(invoice) ) def is_b2cs_invoice(self, invoice): @@ -298,7 +299,7 @@ def is_b2cs_invoice(self, invoice): not self.is_nil_rated_exempted_or_non_gst(invoice) and not self.has_gstin_and_is_not_export(invoice) and not self.is_export(invoice) - and (not self.is_b2cl_cn_dn(invoice) or not self.is_b2cl_invoice(invoice)) + and (not self.is_b2cl_cn_dn(invoice) or not self.is_b2cl_inv(invoice)) ) def is_cdnr_invoice(self, invoice): From cf798ff160304327d09b61a2342eba0da08a225e Mon Sep 17 00:00:00 2001 From: priyanshshah2442 Date: Mon, 1 Apr 2024 12:06:23 +0530 Subject: [PATCH 2/2] fix: B2C(Others) and B2C(Large) category and subcategory assignment --- india_compliance/gst_india/utils/gstr/gstr_1.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/india_compliance/gst_india/utils/gstr/gstr_1.py b/india_compliance/gst_india/utils/gstr/gstr_1.py index b4ea6e8eac..6d850b88bb 100644 --- a/india_compliance/gst_india/utils/gstr/gstr_1.py +++ b/india_compliance/gst_india/utils/gstr/gstr_1.py @@ -259,7 +259,7 @@ def is_b2cl_cn_dn(self, invoice): return (abs(invoice_total) > B2C_LIMIT) and self.is_inter_state(invoice) @cache_invoice_condition - def is_b2cl_invoice(self, invoice): + def is_b2cl_inv(self, invoice): return abs(invoice.total_amount) > B2C_LIMIT and self.is_inter_state(invoice) @@ -291,6 +291,7 @@ def is_b2cl_invoice(self, invoice): and not self.is_cn_dn(invoice) and not self.has_gstin_and_is_not_export(invoice) and not self.is_export(invoice) + and self.is_b2cl_inv(invoice) ) def is_b2cs_invoice(self, invoice): @@ -298,7 +299,7 @@ def is_b2cs_invoice(self, invoice): not self.is_nil_rated_exempted_or_non_gst(invoice) and not self.has_gstin_and_is_not_export(invoice) and not self.is_export(invoice) - and (not self.is_b2cl_cn_dn(invoice) or not self.is_b2cl_invoice(invoice)) + and (not self.is_b2cl_cn_dn(invoice) or not self.is_b2cl_inv(invoice)) ) def is_cdnr_invoice(self, invoice):