From a48a29410e82bce815e0c0078b2c8d36797d0829 Mon Sep 17 00:00:00 2001 From: khushi8112 Date: Thu, 9 Apr 2026 18:05:39 +0530 Subject: [PATCH] fix: refresh after unreconcile --- erpnext/public/js/utils/unreconcile.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/erpnext/public/js/utils/unreconcile.js b/erpnext/public/js/utils/unreconcile.js index 4ccbf0106d7..1f9ffda7c24 100644 --- a/erpnext/public/js/utils/unreconcile.js +++ b/erpnext/public/js/utils/unreconcile.js @@ -140,7 +140,8 @@ erpnext.accounts.unreconcile_payment = { selected_allocations ); erpnext.accounts.unreconcile_payment.create_unreconcile_docs( - selection_map + selection_map, + frm ); d.hide(); } else { @@ -156,12 +157,23 @@ erpnext.accounts.unreconcile_payment = { } }, - create_unreconcile_docs(selection_map) { + create_unreconcile_docs(selection_map, frm) { frappe.call({ method: "erpnext.accounts.doctype.unreconcile_payment.unreconcile_payment.create_unreconcile_doc_for_selection", args: { selections: selection_map, }, + callback: function (r) { + if (r.exc) { + return; + } + + if (frm && !frm.is_new()) { + frm.reload_doc(); + } + + frappe.show_alert({ message: __("Unreconciled successfully"), indicator: "green" }); + }, }); }, };