Merge pull request #48650 from aerele/payment-entry-outstanding-amount

fix: update outstanding amount on payment reconcillation
This commit is contained in:
ruthra kumar
2025-07-23 06:52:29 +05:30
committed by GitHub

View File

@@ -522,7 +522,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)