Skip to content

Commit

Permalink
Add: Join variable at search.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilherme Diego committed Jul 26, 2017
1 parent 9ecc498 commit 5c25e78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ For the formula:
- name
- operator
- value
- join (optional)
- formula (optional)
- field
+ values
Expand Down
5 changes: 4 additions & 1 deletion lib/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ this.Searcher = (function() {
this.SEARCH_FILTER_NAME_KEY = 'name';
this.SEARCH_FILTER_OPERATOR_KEY = 'operator';
this.SEARCH_FILTER_VALUE_KEY = 'value';
this.SEARCH_FILTER_JOIN_KEY = 'join';
this.SEARCH_FILTER_FORMULA_KEY = 'formula';

this.SEARCH_COLUMN_NAME_KEY = 'name';
Expand Down Expand Up @@ -157,7 +158,9 @@ this.Searcher = (function() {
name = searchFilterData[this.SEARCH_FILTER_NAME_KEY];
operator = searchFilterData[this.SEARCH_FILTER_OPERATOR_KEY];
value = searchFilterData[this.SEARCH_FILTER_VALUE_KEY];
filter = NetsuiteToolkit.searchFilter(name, null, operator, value);
join = searchFilterData[this.SEARCH_FILTER_JOIN_KEY] || null;

filter = NetsuiteToolkit.searchFilter(name, join, operator, value);
return filter;
}

Expand Down

0 comments on commit 5c25e78

Please sign in to comment.