LP1883171 & LP1940663: Replace circ method to update latest inventory
authorJason Stephenson <jason@sigio.com>
Sun, 31 Oct 2021 20:14:10 +0000 (16:14 -0400)
committerMike Rylander <mrylander@gmail.com>
Thu, 24 Mar 2022 21:26:22 +0000 (17:26 -0400)
commitf3811352554f09dc43cebe3f0929c8678dbf99ba
tree8cb8c09b803b925bf0fbbf4f8cdeddb27197e46c
parent8ec3e4ade4aededbfaec72374fa9bd4667e19edc
LP1883171 & LP1940663: Replace circ method to update latest inventory

Replace the open-ils.circ.circulation.update_latest_inventory method
with open-ils.circ.circulation.update_copy_inventory.

Beyond renaming the method and changing the tables it operates on, the
following changes are also made:

1. Use savepoints to allow some updates to succeed when others fail.

2. Modify the return value to include success and failure counts so that
these could potentially be used in client feedback.

This work was sponsored by NOBLE.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ.pm