fix: Table row in dialog should not have delete row option

(cherry picked from commit eb89903dec)
This commit is contained in:
nishkagosalia
2026-04-06 19:09:20 +05:30
committed by Mergify
parent 4d300f7d34
commit 5916e570af
3 changed files with 7 additions and 4 deletions

View File

@@ -472,6 +472,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
frappe.msgprint(__("No pending payment schedules available."));
return;
}
schedules.forEach((schedule) => (schedule.__checked = 1));
const dialog = new frappe.ui.Dialog({
title: __("Select Payment Schedule"),
@@ -481,6 +482,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
fieldname: "payment_schedules",
label: __("Payment Schedules"),
cannot_add_rows: true,
cannot_delete_rows: true,
in_place_edit: false,
data: schedules,
fields: [
@@ -526,7 +528,6 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
});
return;
}
console.log(selected);
dialog.hide();
let me = this;
const payment_request_type = ["Sales Order", "Sales Invoice"].includes(this.frm.doc.doctype)