]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP#902255: Protect against hold double-capture
authorMike Rylander <mrylander@gmail.com>
Mon, 8 Jun 2015 15:11:04 +0000 (11:11 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Mon, 15 Jun 2015 19:16:06 +0000 (15:16 -0400)
commitc258851aa11f67eac7e3b0c8422bacb42f20c63a
tree9203a8fc5356a0868f1c059c1bc84a3772894829
parentca7e68298e823f77e50fcb141249cc16a63bf5b9
LP#902255: Protect against hold double-capture

When the staff client is in Fast Scan (async) mode, it is possible
to double-scan at checkin and cause two holds to be captured by the
same item.  By creating a specially crafted unique index we ensure
that the database rejects this situation.

This protection would cause unhandled errors in the staff client, so
we also register a new string to be displayed when this particular
situation occurs, alerting staff to the possible double-scan of a
barcode at checkin IFF they are using async mode.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/sql/Pg/090.schema.action.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.disallow-double-capture.sql [new file with mode: 0644]
Open-ILS/xul/staff_client/server/circ/util.js
Open-ILS/xul/staff_client/server/locale/en-US/circ.properties