]> git.evergreen-ils.org Git - working/Evergreen.git/commit
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)
committerJason Stephenson <jason@sigio.com>
Thu, 27 Jan 2022 01:00:17 +0000 (20:00 -0500)
commit8e2986ac268bea32f9b2082c619ea9c2056660cb
tree0c1805e16ee1cb463e8efe6023498c330342e3e9
parent9c1994e40fd05b7f0c63da8734105f720c168a61
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>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ.pm