Skip to content

Commit

Permalink
Enable range search for money fields
Browse files Browse the repository at this point in the history
Allow total_amount to be exposed for searching by range
  • Loading branch information
eileenmcnaughton committed Jul 21, 2021
1 parent 7c97bc4 commit 947a143
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
// Multiselects cannot use range search
!ctrl.getDefn().input_attrs.multiple &&
// DataType & inputType must make sense for a range
_.includes(['Date', 'Timestamp', 'Integer', 'Float'], ctrl.getDefn().data_type) &&
_.includes(['Date', 'Timestamp', 'Integer', 'Float', 'Money'], ctrl.getDefn().data_type) &&
_.includes(['Date', 'Number', 'Select'], $scope.getProp('input_type'))
));
};
Expand Down

0 comments on commit 947a143

Please sign in to comment.