mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
fix: refresh after unreconcile
This commit is contained in:
@@ -140,7 +140,8 @@ erpnext.accounts.unreconcile_payment = {
|
|||||||
selected_allocations
|
selected_allocations
|
||||||
);
|
);
|
||||||
erpnext.accounts.unreconcile_payment.create_unreconcile_docs(
|
erpnext.accounts.unreconcile_payment.create_unreconcile_docs(
|
||||||
selection_map
|
selection_map,
|
||||||
|
frm
|
||||||
);
|
);
|
||||||
d.hide();
|
d.hide();
|
||||||
} else {
|
} else {
|
||||||
@@ -156,12 +157,23 @@ erpnext.accounts.unreconcile_payment = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
create_unreconcile_docs(selection_map) {
|
create_unreconcile_docs(selection_map, frm) {
|
||||||
frappe.call({
|
frappe.call({
|
||||||
method: "erpnext.accounts.doctype.unreconcile_payment.unreconcile_payment.create_unreconcile_doc_for_selection",
|
method: "erpnext.accounts.doctype.unreconcile_payment.unreconcile_payment.create_unreconcile_doc_for_selection",
|
||||||
args: {
|
args: {
|
||||||
selections: selection_map,
|
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