Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: B2C(Others) and B2C(Large) category and subcategory assignment #1957

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading