From 2fef2997fa477899b83bc6fbb720c3d8c1c5bd62 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 5 Feb 2018 17:27:59 -0500 Subject: [PATCH] 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 --- Open-ILS/web/js/ui/kcls/circ/selfcheck/selfcheck.js | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.11.0