Skip to content

Commit

Permalink
test: fix purchase invoice creation in test
Browse files Browse the repository at this point in the history
  • Loading branch information
blaggacao committed Oct 7, 2024
1 parent 2adb417 commit 60d99a0
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 60d99a0

Please sign in to comment.