[Minor] Displaying 'for warehouse' while creating Material request from BOM
This commit is contained in:
parent
6f8dfa4c8d
commit
405b66898e
@ -52,11 +52,11 @@ erpnext.buying.MaterialRequestController = erpnext.buying.BuyingController.exten
|
|||||||
if(doc.material_request_type === "Purchase")
|
if(doc.material_request_type === "Purchase")
|
||||||
cur_frm.add_custom_button(__("Supplier Quotation"),
|
cur_frm.add_custom_button(__("Supplier Quotation"),
|
||||||
this.make_supplier_quotation, __("Make"));
|
this.make_supplier_quotation, __("Make"));
|
||||||
|
|
||||||
if(doc.material_request_type === "Manufacture" && doc.status === "Submitted")
|
if(doc.material_request_type === "Manufacture" && doc.status === "Submitted")
|
||||||
cur_frm.add_custom_button(__("Production Order"),
|
cur_frm.add_custom_button(__("Production Order"),
|
||||||
this.raise_production_orders, __("Make"));
|
this.raise_production_orders, __("Make"));
|
||||||
|
|
||||||
cur_frm.page.set_inner_btn_group_as_primary(__("Make"));
|
cur_frm.page.set_inner_btn_group_as_primary(__("Make"));
|
||||||
|
|
||||||
// stop
|
// stop
|
||||||
@ -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;
|
||||||
});
|
});
|
||||||
@ -170,9 +170,8 @@ erpnext.buying.MaterialRequestController = erpnext.buying.BuyingController.exten
|
|||||||
frm: cur_frm
|
frm: cur_frm
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
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",
|
||||||
args: {
|
args: {
|
||||||
@ -198,5 +197,3 @@ cur_frm.cscript['Unstop Material Request'] = function(){
|
|||||||
cur_frm.refresh();
|
cur_frm.refresh();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user