@@ -59,10 +59,10 @@ frappe.ui.form.on('Subcontracting Receipt', {
|
|||||||
});
|
});
|
||||||
|
|
||||||
frappe.db.get_single_value('Buying Settings', 'backflush_raw_materials_of_subcontract_based_on').then(val => {
|
frappe.db.get_single_value('Buying Settings', 'backflush_raw_materials_of_subcontract_based_on').then(val => {
|
||||||
if (val == "Material Transferred for Subcontract") {
|
if (val == 'Material Transferred for Subcontract') {
|
||||||
cur_frm.fields_dict['supplied_items'].grid.grid_rows.forEach((grid_row) => {
|
frm.fields_dict['supplied_items'].grid.grid_rows.forEach((grid_row) => {
|
||||||
grid_row.docfields.forEach((df) => {
|
grid_row.docfields.forEach((df) => {
|
||||||
if (df.fieldname == "consumed_qty") {
|
if (df.fieldname == 'consumed_qty') {
|
||||||
df.read_only = 0;
|
df.read_only = 0;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user