Skip to content

Commit

Permalink
Add new filter for free unassigned tickets (#452)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomás Castillo <[email protected]>
  • Loading branch information
tomrndom authored Aug 7, 2024
1 parent d34526b commit 9b4526b
Show file tree
Hide file tree
Showing 4 changed files with 265 additions and 170 deletions.
4 changes: 4 additions & 0 deletions src/actions/ticket-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ const parseFilters = (filters, term = null) => {
filter.push("is_printable==1");
}

if (filters?.excludeFreeUnassigned) {
filter.push("exclude_is_printable_free_unassigned==1");
}

if (filters?.hasOwnerFilter) {
if (filters.hasOwnerFilter === "HAS_OWNER") filter.push("has_owner==1");
if (filters.hasOwnerFilter === "HAS_NO_OWNER") filter.push("has_owner==0");
Expand Down
1 change: 1 addition & 0 deletions src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1524,6 +1524,7 @@
"print_modal_body": "You are about to send all selected tickets to print",
"show_printable": "Show Printable Tickets",
"show_printable_info": "Must be an active ticket with the access level of IN_PERSON.",
"exclude_free_unassigned": "Exclude Unassigned Free Tickets?",
"items_qty": "Selected {qty} Tickets",
"select_view_2_print": "Select a View Type to Print",
"select_fields": "Show Columns",
Expand Down
Loading

0 comments on commit 9b4526b

Please sign in to comment.