Skip to content

Commit

Permalink
[fix] Sales Order - get_query fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anandpdoshi committed Sep 24, 2015
1 parent 361eca4 commit c6e4b59
Show file tree
Hide file tree
Showing 2 changed files with 2,670 additions and 2,664 deletions.
12 changes: 9 additions & 3 deletions erpnext/projects/doctype/project/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,15 @@ cur_frm.fields_dict.customer.get_query = function(doc,cdt,cdn) {
}

cur_frm.fields_dict['sales_order'].get_query = function(doc) {
var filters = {
'project_name': ["in", doc.__islocal ? [""] : [doc.name, ""]]
};

if (doc.customer) {
filters["customer"] = doc.customer;
}

return {
filters:{
'project_name': doc.name
}
filters: filters
}
}
Loading

0 comments on commit c6e4b59

Please sign in to comment.