mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 08:54:45 +00:00
refactor(test): save first to let the tax table populate
(cherry picked from commit 23d465805b)
This commit is contained in:
@@ -519,7 +519,7 @@ class TestTaxWithholdingCategory(FrappeTestCase):
|
|||||||
payment = get_payment_entry(order.doctype, order.name)
|
payment = get_payment_entry(order.doctype, order.name)
|
||||||
payment.apply_tax_withholding_amount = 1
|
payment.apply_tax_withholding_amount = 1
|
||||||
payment.tax_withholding_category = "Cumulative Threshold TDS"
|
payment.tax_withholding_category = "Cumulative Threshold TDS"
|
||||||
payment.submit()
|
payment.save().submit()
|
||||||
self.assertEqual(payment.taxes[0].tax_amount, 4000)
|
self.assertEqual(payment.taxes[0].tax_amount, 4000)
|
||||||
|
|
||||||
def test_multi_category_single_supplier(self):
|
def test_multi_category_single_supplier(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user