mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-07 15:25:19 +00:00
fix: correctly set 'cannot_add_rows' property on allocations table field
(cherry picked from commit 13ca2700f8)
This commit is contained in:
@@ -119,11 +119,18 @@ erpnext.accounts.unreconcile_payment = {
|
|||||||
return r.message;
|
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({
|
let d = new frappe.ui.Dialog({
|
||||||
title: "UnReconcile Allocations",
|
title: "UnReconcile Allocations",
|
||||||
fields: unreconcile_dialog_fields,
|
fields: unreconcile_dialog_fields,
|
||||||
size: "large",
|
size: "large",
|
||||||
cannot_add_rows: true,
|
|
||||||
primary_action_label: "UnReconcile",
|
primary_action_label: "UnReconcile",
|
||||||
primary_action(values) {
|
primary_action(values) {
|
||||||
let selected_allocations = values.allocations.filter((x) => x.__checked);
|
let selected_allocations = values.allocations.filter((x) => x.__checked);
|
||||||
|
|||||||
Reference in New Issue
Block a user