Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Disable "Add Row" button in allocations table during UnReconcile process (backport #44148) #44152

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion erpnext/public/js/utils/unreconcile.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,18 @@ erpnext.accounts.unreconcile_payment = {
return r.message;
};

const allocationsTableField = unreconcile_dialog_fields.find(
(field) => field.fieldname === "allocations"
);

if (allocationsTableField) {
allocationsTableField.cannot_add_rows = true;
}

let d = new frappe.ui.Dialog({
title: "UnReconcile Allocations",
fields: unreconcile_dialog_fields,
size: "large",
cannot_add_rows: true,
primary_action_label: "UnReconcile",
primary_action(values) {
let selected_allocations = values.allocations.filter((x) => x.__checked);
Expand Down
Loading