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) {
|
||||
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",
|
||||
"amended_from",
|
||||
"warehouse_section",
|
||||
"set_warehouse",
|
||||
"column_break5",
|
||||
"set_from_warehouse",
|
||||
"column_break5",
|
||||
"set_warehouse",
|
||||
"items_section",
|
||||
"scan_barcode",
|
||||
"items",
|
||||
@ -314,7 +314,7 @@
|
||||
"idx": 70,
|
||||
"is_submittable": 1,
|
||||
"links": [],
|
||||
"modified": "2020-09-19 01:04:09.285862",
|
||||
"modified": "2021-03-31 23:52:55.392512",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Stock",
|
||||
"name": "Material Request",
|
||||
|
Loading…
x
Reference in New Issue
Block a user