fix(ux): make qty field read-only for serial item
This commit is contained in:
parent
93e3fe8445
commit
1d904c0a86
@ -134,6 +134,10 @@ frappe.ui.form.on('Serial and Batch Bundle', {
|
|||||||
frm.fields_dict.entries.grid.update_docfield_property(
|
frm.fields_dict.entries.grid.update_docfield_property(
|
||||||
'batch_no', 'read_only', !frm.doc.has_batch_no
|
'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) {
|
set_queries(frm) {
|
||||||
|
Loading…
Reference in New Issue
Block a user