Skip to content

Commit

Permalink
fix: on unreconciliation, update advance paid
Browse files Browse the repository at this point in the history
(cherry picked from commit c9e2f03)
  • Loading branch information
ruthra-kumar authored and mergify[bot] committed Feb 26, 2024
1 parent ad53633 commit 4d1f56c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ def on_submit(self):
update_voucher_outstanding(
alloc.reference_doctype, alloc.reference_name, alloc.account, alloc.party_type, alloc.party
)
if doc.doctype in frappe.get_hooks("advance_payment_payable_doctypes") + frappe.get_hooks(
"advance_payment_receivable_doctypes"
):
doc.set_total_advance_paid()

frappe.db.set_value("Unreconcile Payment Entries", alloc.name, "unlinked", True)


Expand Down

0 comments on commit 4d1f56c

Please sign in to comment.