fix(test): cumulative threshold checks
This commit is contained in:
parent
84b7c1bba0
commit
132846bbd1
@ -110,9 +110,9 @@ class TestTaxWithholdingCategory(unittest.TestCase):
|
|||||||
invoices.append(pi1)
|
invoices.append(pi1)
|
||||||
|
|
||||||
# Cumulative threshold is 30000
|
# Cumulative threshold is 30000
|
||||||
# Threshold calculation should be on both the invoices
|
# Threshold calculation should be only on the Second invoice
|
||||||
# TDS should be applied only on 1000
|
# Second didn't breach, no TDS should be applied
|
||||||
self.assertEqual(pi1.taxes[0].tax_amount, 1000)
|
self.assertEqual(pi1.taxes, [])
|
||||||
|
|
||||||
for d in reversed(invoices):
|
for d in reversed(invoices):
|
||||||
d.cancel()
|
d.cancel()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user