mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-04 05:58:27 +00:00
@@ -957,9 +957,12 @@ class TestPaymentEntry(FrappeTestCase):
|
|||||||
self.assertEqual(flt(expected_party_account_balance, 2), flt(party_account_balance, 2))
|
self.assertEqual(flt(expected_party_account_balance, 2), flt(party_account_balance, 2))
|
||||||
|
|
||||||
def test_gl_of_multi_currency_payment_transaction(self):
|
def test_gl_of_multi_currency_payment_transaction(self):
|
||||||
from erpnext.setup.doctype.currency_exchange.test_currency_exchange import save_new_records
|
from erpnext.setup.doctype.currency_exchange.test_currency_exchange import (
|
||||||
|
save_new_records,
|
||||||
|
test_records,
|
||||||
|
)
|
||||||
|
|
||||||
save_new_records(self.globalTestRecords["Currency Exchange"])
|
save_new_records(test_records)
|
||||||
paid_from = create_account(
|
paid_from = create_account(
|
||||||
parent_account="Current Liabilities - _TC",
|
parent_account="Current Liabilities - _TC",
|
||||||
account_name="_Test Cash USD",
|
account_name="_Test Cash USD",
|
||||||
@@ -995,8 +998,8 @@ class TestPaymentEntry(FrappeTestCase):
|
|||||||
.run()
|
.run()
|
||||||
)
|
)
|
||||||
expected_gl_entries = (
|
expected_gl_entries = (
|
||||||
(paid_from, 0.0, 8440.0, 0.0, 100.0, 0.0, 8440.0),
|
(paid_from, 0.0, 8440.0, 0.0, 100.0, 0.0, 100.0),
|
||||||
("_Test Payable USD - _TC", 8440.0, 0.0, 100.0, 0.0, 8440.0, 0.0),
|
("_Test Payable USD - _TC", 8440.0, 0.0, 100.0, 0.0, 100.0, 0.0),
|
||||||
)
|
)
|
||||||
self.assertEqual(gl_entries, expected_gl_entries)
|
self.assertEqual(gl_entries, expected_gl_entries)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user