mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 07:02:54 +00:00
test: move code to ensure fixtures get created
This commit is contained in:
@@ -1474,15 +1474,15 @@ class TestPurchaseInvoice(unittest.TestCase, StockTestMixin):
|
|||||||
def test_purchase_invoice_advance_taxes(self):
|
def test_purchase_invoice_advance_taxes(self):
|
||||||
from erpnext.accounts.doctype.payment_entry.payment_entry import get_payment_entry
|
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
|
# create a new supplier to test
|
||||||
supplier = create_supplier(
|
supplier = create_supplier(
|
||||||
supplier_name="_Test TDS Advance Supplier",
|
supplier_name="_Test TDS Advance Supplier",
|
||||||
tax_withholding_category="TDS - 194 - Dividends - Individual",
|
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
|
# Create Purchase Order with TDS applied
|
||||||
po = create_purchase_order(
|
po = create_purchase_order(
|
||||||
do_not_save=1,
|
do_not_save=1,
|
||||||
|
|||||||
Reference in New Issue
Block a user