Skip to content
Browse files

Issue 19453: Added ExpiredDate filter and DateRange Filter to QuotePa…

…rameter for Advanced Search
  • Loading branch information...
1 parent e17b243 commit b1ee3079663f09430f48437a14fcb4f0475761f7 Linda Nichols committed
Showing with 11 additions and 17 deletions.
  1. +11 −17 enyo-client/application/source/widgets/parameter.js
View
28 enyo-client/application/source/widgets/parameter.js
@@ -538,28 +538,22 @@ trailing:true white:true*/
if (!this.getValue()) {
param = {
attribute: this.getAttr(),
- operator: '<=',
+ operator: '>=',
value: new Date()
};
}
return param;
}
- }
- // {name: "name", label: "_name".loc(), attr: "name"},
- // {name: "description", label: "_description".loc(), attr: "description"},
- // {kind: "onyx.GroupboxHeader", content: "_relationships".loc()},
- // {name: "account", label: "_account".loc(), attr: "account", defaultKind: "XV.AccountWidget"},
- // {name: "contact", label: "_contact".loc(), attr: "contact", defaultKind: "XV.ContactWidget"},
- // {kind: "onyx.GroupboxHeader", content: "_userAccounts".loc()},
- // {name: "owner", label: "_owner".loc(), attr: "owner", defaultKind: "XV.UserAccountWidget"},
- // {name: "assignedTo", label: "_assignedTo".loc(), attr: "assignedTo", defaultKind: "XV.UserAccountWidget"},
- // {kind: "onyx.GroupboxHeader", content: "_dueDate".loc()},
- // {name: "fromDate", label: "_fromDate".loc(), attr: "dueDate", operator: ">=",
- // filterLabel: "_from".loc() + " " + "_dueDate".loc() + " " + "_date".loc(),
- // defaultKind: "XV.DateWidget"},
- // {name: "toDate", label: "_toDate".loc(), attr: "dueDate", operator: "<=",
- // filterLabel: "_to".loc() + " " + "_dueDate".loc() + " " + "_date".loc(),
- // defaultKind: "XV.DateWidget"}
+ },
+ {kind: "onyx.GroupboxHeader", content: "_quoteDate".loc()},
+ {name: "createdFromDate", label: "_fromDate".loc(),
+ filterLabel: "_quoteDate".loc() + " " + "_fromDate".loc(),
+ attr: "quoteDate", operator: ">=",
+ defaultKind: "XV.DateWidget"},
+ {name: "createdToDate", label: "_toDate".loc(),
+ filterLabel: "_quoteDate".loc() + " " + "_toDate".loc(),
+ attr: "quoteDate", operator: "<=",
+ defaultKind: "XV.DateWidget"}
]
});

0 comments on commit b1ee307

Please sign in to comment.
Something went wrong with that request. Please try again.