mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-18 20:49:19 +00:00
@@ -1465,12 +1465,12 @@ class TestPaymentEntry(FrappeTestCase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
po = create_purchase_order(supplier="_Test Supplier")
|
po = create_purchase_order(supplier="_Test Supplier")
|
||||||
pe = get_payment_entry("Purchase Order", po.name)
|
pe = get_payment_entry("Purchase Order", po.name, bank_account="Cash - _TC")
|
||||||
pe.save().submit()
|
pe.save().submit()
|
||||||
|
|
||||||
pre_reconciliation_gle = [
|
pre_reconciliation_gle = [
|
||||||
|
{"account": "Cash - _TC", "debit": 0.0, "credit": 5000.0},
|
||||||
{"account": advance_account, "debit": 5000.0, "credit": 0.0},
|
{"account": advance_account, "debit": 5000.0, "credit": 0.0},
|
||||||
{"account": "_Test Bank 2 - _TC", "debit": 0.0, "credit": 5000.0},
|
|
||||||
]
|
]
|
||||||
|
|
||||||
self.voucher_no = pe.name
|
self.voucher_no = pe.name
|
||||||
@@ -1494,9 +1494,9 @@ class TestPaymentEntry(FrappeTestCase):
|
|||||||
# # assert General and Payment Ledger entries post partial reconciliation
|
# # assert General and Payment Ledger entries post partial reconciliation
|
||||||
self.expected_gle = [
|
self.expected_gle = [
|
||||||
{"account": pi.credit_to, "debit": 5000.0, "credit": 0.0},
|
{"account": pi.credit_to, "debit": 5000.0, "credit": 0.0},
|
||||||
|
{"account": "Cash - _TC", "debit": 0.0, "credit": 5000.0},
|
||||||
{"account": advance_account, "debit": 5000.0, "credit": 0.0},
|
{"account": advance_account, "debit": 5000.0, "credit": 0.0},
|
||||||
{"account": advance_account, "debit": 0.0, "credit": 5000.0},
|
{"account": advance_account, "debit": 0.0, "credit": 5000.0},
|
||||||
{"account": "_Test Bank 2 - _TC", "debit": 0.0, "credit": 5000.0},
|
|
||||||
]
|
]
|
||||||
|
|
||||||
self.voucher_no = pe.name
|
self.voucher_no = pe.name
|
||||||
|
|||||||
Reference in New Issue
Block a user