diff --git a/erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.py b/erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.py index 6412da709f1..c0fa176bc02 100644 --- a/erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.py +++ b/erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.py @@ -1474,15 +1474,15 @@ class TestPurchaseInvoice(unittest.TestCase, StockTestMixin): def test_purchase_invoice_advance_taxes(self): from erpnext.accounts.doctype.payment_entry.payment_entry import get_payment_entry + # Update tax withholding category with current fiscal year and rate details + update_tax_witholding_category("_Test Company", "TDS Payable - _TC") + # create a new supplier to test supplier = create_supplier( supplier_name="_Test TDS Advance Supplier", tax_withholding_category="TDS - 194 - Dividends - Individual", ) - # Update tax withholding category with current fiscal year and rate details - update_tax_witholding_category("_Test Company", "TDS Payable - _TC") - # Create Purchase Order with TDS applied po = create_purchase_order( do_not_save=1,