[Minor] Displaying 'for warehouse' while creating Material request from BOM

This commit is contained in:
shreyas 2016-03-08 18:30:51 +05:30
parent 6f8dfa4c8d
commit 405b66898e

View File

@ -125,7 +125,7 @@ erpnext.buying.MaterialRequestController = erpnext.buying.BuyingController.exten
var d = frappe.model.add_child(cur_frm.doc, "Material Request Item", "items"); var d = frappe.model.add_child(cur_frm.doc, "Material Request Item", "items");
d.item_code = item.item_code; d.item_code = item.item_code;
d.description = item.description; d.description = item.description;
d.warehouse = d.warehouse; d.warehouse = values.warehouse;
d.uom = item.stock_uom; d.uom = item.stock_uom;
d.qty = item.qty; d.qty = item.qty;
}); });
@ -171,7 +171,6 @@ erpnext.buying.MaterialRequestController = erpnext.buying.BuyingController.exten
}); });
}, },
raise_production_orders: function() { raise_production_orders: function() {
frappe.call({ frappe.call({
method:"erpnext.stock.doctype.material_request.material_request.raise_production_orders", method:"erpnext.stock.doctype.material_request.material_request.raise_production_orders",
@ -198,5 +197,3 @@ cur_frm.cscript['Unstop Material Request'] = function(){
cur_frm.refresh(); cur_frm.refresh();
}); });
}; };