From: Bill Erickson Date: Mon, 5 Feb 2018 22:27:59 +0000 (-0500) Subject: JBAS-1980 SCKO already-processed for success only X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2fef2997fa477899b83bc6fbb720c3d8c1c5bd62;p=working%2FEvergreen.git JBAS-1980 SCKO already-processed for success only 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 --- diff --git a/Open-ILS/web/js/ui/kcls/circ/selfcheck/selfcheck.js b/Open-ILS/web/js/ui/kcls/circ/selfcheck/selfcheck.js index 32b749f360..30d71c629a 100644 --- a/Open-ILS/web/js/ui/kcls/circ/selfcheck/selfcheck.js +++ b/Open-ILS/web/js/ui/kcls/circ/selfcheck/selfcheck.js @@ -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