filters added to warehouses in prod order
This commit is contained in:
parent
a6c361c00e
commit
b13c4e2516
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user