Merge pull request #2101 from nabinhait/hotfix

Required raw materials qty in PP tool
This commit is contained in:
Nabin Hait 2014-08-23 20:05:42 +05:30
commit b748115609
2 changed files with 11 additions and 1 deletions

View File

@ -31,6 +31,16 @@ cur_frm.cscript.download_materials_required = function(doc, cdt, cdn) {
});
}
cur_frm.fields_dict['pp_so_details'].grid.get_field('sales_order').get_query = function(doc) {
var args = { "docstatus": 1 };
if(doc.customer) {
args["customer"] = doc.customer;
}
return { filters: args }
}
cur_frm.fields_dict['pp_details'].grid.get_field('item_code').get_query = function(doc) {
return erpnext.queries.item({
'is_pro_applicable': 'Yes'