Skip to content

Commit

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

fix: apply "cannot_add_rows" directly to table field for more efficient solution (backport #44157)
  • Loading branch information
ruthra-kumar authored Nov 18, 2024
2 parents 8a94d7b + f9b52b2 commit 85d398e
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions erpnext/public/js/utils/unreconcile.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ erpnext.accounts.unreconcile_payment = {
fieldtype: "Table",
read_only: 1,
fields: child_table_fields,
cannot_add_rows: true,
},
];

Expand All @@ -119,14 +120,6 @@ 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,
Expand Down

0 comments on commit 85d398e

Please sign in to comment.