Skip to content

Commit

Permalink
fix(test): cumulative threshold checks
Browse files Browse the repository at this point in the history
(cherry picked from commit 132846b)
  • Loading branch information
ruthra-kumar authored and mergify[bot] committed May 18, 2023
1 parent bdf81a4 commit 879946e
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 879946e

Please sign in to comment.