fix: not able to save material request
This commit is contained in:
parent
720f69caaf
commit
825850a58f
@ -354,6 +354,10 @@ frappe.ui.form.on('Material Request', {
|
|||||||
},
|
},
|
||||||
material_request_type: function(frm) {
|
material_request_type: function(frm) {
|
||||||
frm.toggle_reqd('customer', frm.doc.material_request_type=="Customer Provided");
|
frm.toggle_reqd('customer', frm.doc.material_request_type=="Customer Provided");
|
||||||
|
|
||||||
|
if (frm.doc.material_request_type !== 'Material Transfer' && frm.doc.set_from_warehouse) {
|
||||||
|
frm.set_value('set_from_warehouse', '');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
@ -20,9 +20,9 @@
|
|||||||
"company",
|
"company",
|
||||||
"amended_from",
|
"amended_from",
|
||||||
"warehouse_section",
|
"warehouse_section",
|
||||||
"set_warehouse",
|
|
||||||
"column_break5",
|
|
||||||
"set_from_warehouse",
|
"set_from_warehouse",
|
||||||
|
"column_break5",
|
||||||
|
"set_warehouse",
|
||||||
"items_section",
|
"items_section",
|
||||||
"scan_barcode",
|
"scan_barcode",
|
||||||
"items",
|
"items",
|
||||||
@ -314,7 +314,7 @@
|
|||||||
"idx": 70,
|
"idx": 70,
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2020-09-19 01:04:09.285862",
|
"modified": "2021-03-31 23:52:55.392512",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Stock",
|
"module": "Stock",
|
||||||
"name": "Material Request",
|
"name": "Material Request",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user