JBAS-1980 SCKO already-processed for success only
authorBill Erickson <berickxx@gmail.com>
Mon, 5 Feb 2018 22:27:59 +0000 (17:27 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Only display the "item already processed" message for sucessful
checkouts.  Checkout failures are always allowed to re-process so the
user can see the real error message.

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

index 32b749f..30d71c6 100644 (file)
@@ -1221,6 +1221,7 @@ SelfCheckManager.prototype.handleXactResult = function(action, item, result, isB
             popup = true;
             sound = 'checkout-failure';
             displayText = dojo.string.substitute(localeStrings.ALREADY_OUT, [item]);
+            delete seenBarcodes[item];
 
         } else {
 
@@ -1240,6 +1241,7 @@ SelfCheckManager.prototype.handleXactResult = function(action, item, result, isB
             popup = true;
             sound = 'checkout-failure';
             displayText = dojo.string.substitute(localeStrings.OPEN_CIRCULATION_EXISTS, [item]);
+            delete seenBarcodes[item];
         }
 
         this.updateScanBox();
@@ -1293,6 +1295,7 @@ SelfCheckManager.prototype.handleXactResult = function(action, item, result, isB
         this.updateScanBox();
         popup = true;
         sound = 'checkout-failure';
+        delete seenBarcodes[item];
 
         // JBAS-1728
         // this.prevCirc is only set when attempting to auto-renew