fix: calculate outstanding amount on reconcile correctly
diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py
index c1d3653..728a6d7 100644
--- a/erpnext/accounts/utils.py
+++ b/erpnext/accounts/utils.py
@@ -472,7 +472,7 @@
doc.save(ignore_permissions=True)
# re-submit advance entry
doc = frappe.get_doc(entry.voucher_type, entry.voucher_no)
- gl_map = doc.build_gl_map()
+ gl_map = doc.build_gl_map(is_reconcile=True)
create_payment_ledger_entry(gl_map, update_outstanding="No", cancel=0, adv_adj=1)
# Only update outstanding for newly linked vouchers