From 0d496bb05fb23e1576dfedf28c214985e7a771e9 Mon Sep 17 00:00:00 2001 From: ravibharathi656 Date: Thu, 17 Jul 2025 14:41:14 +0530 Subject: [PATCH] fix: update outstanding amount on payment reconcillation (cherry picked from commit 478766c60043b456e90ddda672715d150629233c) --- erpnext/accounts/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py index 9132cb15fd9..30081e275ff 100644 --- a/erpnext/accounts/utils.py +++ b/erpnext/accounts/utils.py @@ -512,7 +512,8 @@ def reconcile_against_document( skip_ref_details_update_for_pe=skip_ref_details_update_for_pe, dimensions_dict=dimensions_dict, ) - + if referenced_row.get("outstanding_amount"): + referenced_row.outstanding_amount -= flt(entry.allocated_amount) doc.save(ignore_permissions=True) # re-submit advance entry doc = frappe.get_doc(entry.voucher_type, entry.voucher_no)