]> git.evergreen-ils.org Git - 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:14:04 +0000 (15:14 -0400)
commit32e415a205c40f013d8839a02bb50033a0606072
tree7c1a6fe92d281a151250fb4ba9c7272273cbda6f
parent71addb175019ff39bf522d4e73f6bda759486867
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