diff --git a/erpnext/accounts/doctype/payment_request/test_payment_request.py b/erpnext/accounts/doctype/payment_request/test_payment_request.py index 42f67ab0bc85..92936b490cd4 100644 --- a/erpnext/accounts/doctype/payment_request/test_payment_request.py +++ b/erpnext/accounts/doctype/payment_request/test_payment_request.py @@ -227,7 +227,7 @@ def test_payment_channels(self): def test_payment_entry_against_purchase_invoice(self): si_usd = make_purchase_invoice( - customer="_Test Supplier USD", + supplier="_Test Supplier USD", debit_to="_Test Payable USD - _TC", currency="USD", conversion_rate=50, @@ -252,7 +252,7 @@ def test_payment_entry_against_purchase_invoice(self): def test_multiple_payment_entry_against_purchase_invoice(self): purchase_invoice = make_purchase_invoice( - customer="_Test Supplier USD", + supplier="_Test Supplier USD", debit_to="_Test Payable USD - _TC", currency="USD", conversion_rate=50, @@ -492,6 +492,9 @@ def test_multiple_payment_if_partially_paid_for_same_currency(self): return_doc=1, ) + @IntegrationTestCase.change_settings( + "Accounts Settings", test_multiple_payment_if_partially_paid_for_multi_currency=1 + ) def test_multiple_payment_if_partially_paid_for_multi_currency(self): pi = make_purchase_invoice(currency="USD", conversion_rate=50, qty=1, rate=100)