fix(ux): make qty field read-only for serial item

This commit is contained in:
s-aga-r 2023-06-09 12:05:02 +05:30
parent 93e3fe8445
commit 1d904c0a86

View File

@ -134,6 +134,10 @@ frappe.ui.form.on('Serial and Batch Bundle', {
frm.fields_dict.entries.grid.update_docfield_property(
'batch_no', 'read_only', !frm.doc.has_batch_no
);
frm.fields_dict.entries.grid.update_docfield_property(
'qty', 'read_only', frm.doc.has_serial_no
);
},
set_queries(frm) {