Skip to content

Commit

Permalink
fix(test): cumulative threshold checks
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthra-kumar committed May 18, 2023
1 parent 84b7c1b commit 132846b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ def test_tax_withholding_category_checks(self):
invoices.append(pi1)

# Cumulative threshold is 30000
# Threshold calculation should be on both the invoices
# TDS should be applied only on 1000
self.assertEqual(pi1.taxes[0].tax_amount, 1000)
# Threshold calculation should be only on the Second invoice
# Second didn't breach, no TDS should be applied
self.assertEqual(pi1.taxes, [])

for d in reversed(invoices):
d.cancel()
Expand Down

0 comments on commit 132846b

Please sign in to comment.