lp1437103 Allow Receipts to Print when Suppressing Popups
authorKyle Huckins <khuckins@catalyte.io>
Fri, 5 Jul 2019 14:36:05 +0000 (14:36 +0000)
committerBill Erickson <berickxx@gmail.com>
Fri, 1 Nov 2019 19:37:59 +0000 (15:37 -0400)
- Move suppress_popup check further along and allow transit receipts
to properly print when popups suppressed.

Signed-off-by: Kyle Huckins <khuckins@catalyte.io>
 Changes to be committed:
modified:   Open-ILS/web/js/ui/default/staff/circ/services/circ.js

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/web/js/ui/default/staff/circ/services/circ.js

index 502b96a..4a3ce9c 100644 (file)
@@ -1779,7 +1779,6 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog,  egAddCopyAl
     }
 
     service.route_dialog = function(tmpl, evt, params, options) {
-        if (options.suppress_popups) return;
         if (angular.isArray(evt)) evt = evt[0];
 
         return service.collect_route_data(tmpl, evt, params, options)
@@ -1846,7 +1845,7 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog,  egAddCopyAl
 
             // when auto-print is on, skip the dialog and go straight
             // to printing.
-            if (options.auto_print_holds_transits) 
+            if (options.auto_print_holds_transits || options.suppress_popups
                 return print_transit(template);
 
             return $uibModal.open({