LP1883171 & LP1940663: Modify do_checkin for asset.copy_inventory
authorJason Stephenson <jason@sigio.com>
Sun, 31 Oct 2021 19:18:22 +0000 (15:18 -0400)
committerMike Rylander <mrylander@gmail.com>
Thu, 24 Mar 2022 21:25:44 +0000 (17:25 -0400)
commit8ec3e4ade4aededbfaec72374fa9bd4667e19edc
tree671ad9c9a1ca609f644c6813102a837604011ef1
parentc21c8f591a5140541b111acb0e69d020615c7bb6
LP1883171 & LP1940663: Modify do_checkin for asset.copy_inventory

Modify the do_chekin method of Circulate.pm to create a new
asset::copy_inventory object when the do inventory modifier is used.

This change necessitates moving the check for a floating copy up to
where the do inventory code is run and subsequent modifications to the
transit and noop checkin code.

Set checkin_changed to true when adding an asset.copy_inventory entry
during check-in so that even if there would otherwise be a NO_CHANGE
response, the row will still get created.

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/Circulate.pm