From 3668de7cb770ad54b9f102ca9af36539f4e729c8 Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Fri, 5 Apr 2024 11:08:12 +0530 Subject: [PATCH] fix(test): for reverse payments, only advance acc should have effect This applies for Payments against Reverse-Payment reconcilition (cherry picked from commit 74bc38e0af77126213035e7ecd47564a10af640d) --- erpnext/accounts/doctype/payment_entry/test_payment_entry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/doctype/payment_entry/test_payment_entry.py b/erpnext/accounts/doctype/payment_entry/test_payment_entry.py index d271e76a7f2..6934a635a46 100644 --- a/erpnext/accounts/doctype/payment_entry/test_payment_entry.py +++ b/erpnext/accounts/doctype/payment_entry/test_payment_entry.py @@ -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,