mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-19 23:05:12 +00:00
fix: refresh after unreconcile
This commit is contained in:
@@ -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" });
|
||||
},
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user