filters added to warehouses in prod order

This commit is contained in:
Neil Trini Lasrado 2015-02-13 12:37:57 +05:30
parent a6c361c00e
commit b13c4e2516

View File

@ -219,4 +219,15 @@ var calculate_cost = function(doc) {
frappe.ui.form.on("Production Order Operation", "time_in_mins", function(frm, cdt, cdn) {
calculate_cost(frm.doc);
calculate_total_cost(frm)
});
});
var company_filter = function(doc) {
return{
filters: {
'company': doc.company
}
}
}
cur_frm.fields_dict.fg_warehouse.get_query = company_filter
cur_frm.fields_dict.wip_warehouse.get_query = company_filter