Merge pull request #44177 from frappe/mergify/bp/version-14-hotfix/pr-44157
fix: apply "cannot_add_rows" directly to table field for more efficient solution (backport #44157)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user