diff --git a/erpnext/public/js/utils/unreconcile.js b/erpnext/public/js/utils/unreconcile.js index 4854bf6b452..7dba4705e40 100644 --- a/erpnext/public/js/utils/unreconcile.js +++ b/erpnext/public/js/utils/unreconcile.js @@ -100,6 +100,7 @@ erpnext.accounts.unreconcile_payment = { fieldtype: "Table", read_only: 1, fields: child_table_fields, + cannot_add_rows: true, }, ]; @@ -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,