fix(test): for reverse payments, only advance acc should have effect

This applies for Payments against Reverse-Payment reconcilition

(cherry picked from commit 74bc38e0af)
This commit is contained in:
ruthra kumar
2024-04-05 11:08:12 +05:30
committed by Mergify
parent d9826e3dfc
commit 3668de7cb7

View File

@@ -1615,9 +1615,9 @@ class TestPaymentEntry(FrappeTestCase):
# assert General and Payment Ledger entries post partial reconciliation
self.expected_gle = [
{"account": "Debtors - _TC", "debit": 0.0, "credit": 400.0},
{"account": advance_account, "debit": 400.0, "credit": 0.0},
{"account": advance_account, "debit": 0.0, "credit": 1000.0},
{"account": advance_account, "debit": 0.0, "credit": 400.0},
{"account": "_Test Cash - _TC", "debit": 1000.0, "credit": 0.0},
]
self.expected_ple = [
@@ -1628,7 +1628,7 @@ class TestPaymentEntry(FrappeTestCase):
"amount": -1000.0,
},
{
"account": "Debtors - _TC",
"account": advance_account,
"voucher_no": pe.name,
"against_voucher_no": reverse_pe.name,
"amount": -400.0,