test: move code to ensure fixtures get created
diff --git a/erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.py b/erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.py
index 6412da7..c0fa176 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 @@
 	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,