From d937a6cfcdb132c083df574451059953533000ef Mon Sep 17 00:00:00 2001 From: David Date: Mon, 7 Oct 2024 13:47:28 +0200 Subject: [PATCH] test: fix purchase invoice creation in test --- .../doctype/payment_request/test_payment_request.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/doctype/payment_request/test_payment_request.py b/erpnext/accounts/doctype/payment_request/test_payment_request.py index 42f67ab0bc8..8ceb73176b1 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 @@ class TestPaymentRequest(IntegrationTestCase): 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 @@ class TestPaymentRequest(IntegrationTestCase): 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 @@ class TestPaymentRequest(IntegrationTestCase): return_doc=1, ) + @IntegrationTestCase.change_settings( + "Accounts Settings", allow_multi_currency_invoices_against_single_party_account=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)