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:33 +0000 (15:16 -0400)
commit8edddd734d7843cbb920c2376b094a9abfd4ee99
tree8bbf1d194380e3423ee32fc9fe3ff894ffb8e95c
parentbdbe1543d647e2a708001873b5154be568744ef8
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