Skip to content

Commit

Permalink
Merge pull request #44152 from frappe/mergify/bp/version-14-hotfix/pr…
Browse files Browse the repository at this point in the history
…-44148

Fix: Disable "Add Row" button in allocations table during UnReconcile process (backport #44148)
  • Loading branch information
ruthra-kumar authored Nov 15, 2024
2 parents 5452f8a + 137ef78 commit f5135cd
Showing 1 changed file with 8 additions and 1 deletion.
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

0 comments on commit f5135cd

Please sign in to comment.