mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-19 01:25:07 +00:00
fix: update outstanding amount on payment reconcillation
(cherry picked from commit 478766c600)
This commit is contained in:
@@ -512,7 +512,8 @@ def reconcile_against_document(
|
|||||||
skip_ref_details_update_for_pe=skip_ref_details_update_for_pe,
|
skip_ref_details_update_for_pe=skip_ref_details_update_for_pe,
|
||||||
dimensions_dict=dimensions_dict,
|
dimensions_dict=dimensions_dict,
|
||||||
)
|
)
|
||||||
|
if referenced_row.get("outstanding_amount"):
|
||||||
|
referenced_row.outstanding_amount -= flt(entry.allocated_amount)
|
||||||
doc.save(ignore_permissions=True)
|
doc.save(ignore_permissions=True)
|
||||||
# re-submit advance entry
|
# re-submit advance entry
|
||||||
doc = frappe.get_doc(entry.voucher_type, entry.voucher_no)
|
doc = frappe.get_doc(entry.voucher_type, entry.voucher_no)
|
||||||
|
|||||||
Reference in New Issue
Block a user