Skip to content

Commit

Permalink
fix: tax rate not calculating in tax liability gstr-1 report
Browse files Browse the repository at this point in the history
  • Loading branch information
DaizyModi committed Nov 7, 2023
1 parent 472038f commit c33b89f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions india_compliance/gst_india/report/gstr_1/gstr_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -1061,15 +1061,17 @@ def get_query(self):
Sum(
Case()
.when(
self.gl_entry.account != self.gst_accounts.cess_account,
self.gl_entry.account
!= IfNull(self.gst_accounts.cess_account, ""),
cr_or_dr_amount_field,
)
.else_(0)
).as_("tax_amount"),
Sum(
Case()
.when(
self.gl_entry.account == self.gst_accounts.cess_account,
self.gl_entry.account
== IfNull(self.gst_accounts.cess_account, ""),
cr_or_dr_amount_field,
)
.else_(0)
Expand Down

0 comments on commit c33b89f

Please sign in to comment.