commit | 132846bbd107a921dfbfde9240f368bea9382cf7 | [log] [tgz] |
---|---|---|
author | ruthra kumar <ruthra@erpnext.com> | Thu May 18 12:00:59 2023 +0530 |
committer | ruthra kumar <ruthra@erpnext.com> | Thu May 18 12:00:59 2023 +0530 |
tree | f4bc7c943a7e54abb6b3e1a5d2cb120cbd72197e | |
parent | 84b7c1bba09f89a390a17898b4d8fa665adcbc8f [diff] |
fix(test): cumulative threshold checks
diff --git a/erpnext/accounts/doctype/tax_withholding_category/test_tax_withholding_category.py b/erpnext/accounts/doctype/tax_withholding_category/test_tax_withholding_category.py index 1e86cf5..bc4f670 100644 --- a/erpnext/accounts/doctype/tax_withholding_category/test_tax_withholding_category.py +++ b/erpnext/accounts/doctype/tax_withholding_category/test_tax_withholding_category.py
@@ -110,9 +110,9 @@ 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()