LP#1612752 No canceled transits in webstaff transit list
authorBill Erickson <berickxx@gmail.com>
Tue, 16 May 2017 16:06:37 +0000 (12:06 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 9 Jun 2017 15:27:17 +0000 (11:27 -0400)
Avoid displaying canceled (previously aborted/deleted) transits in the
web staff Transit List interface.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/web/js/ui/default/staff/circ/transits/list.js

index 4ae321f..9fb8a97 100644 (file)
@@ -212,7 +212,8 @@ function($scope , $q , $routeParams , $window , egCore , egTransits , egGridData
     function current_query() {
         var filter = {
             'source_send_time' : { 'between' : date_range() },
-            'dest_recv_time'   : null
+            'dest_recv_time'   : null,
+            'cancel_time'      : null
         };
         if ($scope.transit_direction == 'to') { filter['dest'] = $scope.context_org.id(); }
         if ($scope.transit_direction == 'from') { filter['source'] = $scope.context_org.id(); }