fix: Changes done to get valid sales order list on sales order child table of production plan

This commit is contained in:
Yugandhara 2020-02-15 16:01:41 +05:30
parent ad645afeb2
commit af2b39891e

View File

@ -296,3 +296,11 @@ frappe.ui.form.on("Material Request Plan Item", {
}
}
});
cur_frm.fields_dict['sales_orders'].grid.get_field("sales_order").get_query = function(doc, cdt, cdn) {
return{
filters: [
['Sales Order','docstatus', '=' ,1]
]
}
};