Skip to content

Commit

Permalink
fix: B2C(Others) and B2C(Large) category and subcategory assignment (#…
Browse files Browse the repository at this point in the history
…1957)

* fix: B2C(Others) and B2C(Large) category and subcategory assignment

* fix: B2C(Others) and B2C(Large) category and subcategory assignment
  • Loading branch information
priyanshshah2442 authored Apr 1, 2024
1 parent 1f265e3 commit a27d2bd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions india_compliance/gst_india/utils/gstr/gstr_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down Expand Up @@ -291,14 +291,15 @@ 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):
return (
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):
Expand Down

0 comments on commit a27d2bd

Please sign in to comment.