[fix] Fetch UOM conversion and stock_uom from BOM into material request (#12513)

* [fix]Fetch UOM conversion and stock_uom from BOM into material Request

* Update material_request.js
This commit is contained in:
Vishal Dhayagude 2018-01-17 14:39:54 +05:30 committed by Nabin Hait
parent 2bfa1803e9
commit 052b51ab20

View File

@ -170,6 +170,8 @@ erpnext.buying.MaterialRequestController = erpnext.buying.BuyingController.exten
d.description = item.description;
d.warehouse = values.warehouse;
d.uom = item.stock_uom;
d.stock_uom = item.stock_uom;
d.conversion_factor = 1;
d.qty = item.qty;
});
}
@ -282,4 +284,4 @@ function set_schedule_date(frm) {
if(frm.doc.schedule_date){
erpnext.utils.copy_value_in_all_row(frm.doc, frm.doc.doctype, frm.doc.name, "items", "schedule_date");
}
}
}