LP1883171 & LP1940663: Set checkin_changed user/dyrcona/lp1883171-lp1940663-inventory-date-changes-rebase
authorJason Stephenson <jason@sigio.com>
Thu, 3 Feb 2022 17:12:27 +0000 (12:12 -0500)
committerJason Stephenson <jason@sigio.com>
Thu, 3 Feb 2022 17:12:27 +0000 (12:12 -0500)
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 came up in late
testing.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm

index 46595c1..c2047e3 100644 (file)
@@ -2739,6 +2739,7 @@ sub do_checkin {
         $aci->inventory_workstation($self->editor->requestor->wsid);
         $aci->copy($self->copy->id());
         $self->editor->create_asset_copy_inventory($aci);
+        $self->checkin_changed(1);
     }
 
     if( $self->checkin_check_holds_shelf() ) {