Skip to content

Commit

Permalink
fix: fix failing tax cases for cess_non_advol
Browse files Browse the repository at this point in the history
  • Loading branch information
vishakhdesai committed Jan 21, 2025
1 parent ef1063e commit fba454f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions india_compliance/gst_india/overrides/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -1167,7 +1167,7 @@ def calculate_item_wise_total_tax_amount(self):
not row.base_tax_amount_after_discount_amount
or row.gst_tax_type not in GST_TAX_TYPES
or not row.item_wise_tax_detail
or row.dont_recompute_tax
or row.get("dont_recompute_tax", 0)
):
continue

Expand Down Expand Up @@ -1345,7 +1345,12 @@ def get_item_tax_detail(self, item):
item.qty if tax == "cess_non_advol" else item.taxable_value / 100
)

tax_amount_factor = self.get_item_row_tax_amount_factor(item, row)
tax_amount_factor = (
1
if tax == "cess_non_advol"
else self.get_item_row_tax_amount_factor(item, row)
)

tax_amount = flt(tax_amount_factor * tax_rate * multiplier, precision)
item_tax_detail[tax_amount_field] -= tax_amount

Expand Down

0 comments on commit fba454f

Please sign in to comment.