Bug 13803 Flag to self check book has gone into transit
authorColin Campbell <colin.campbell@ptfs-europe.com>
Tue, 28 Jun 2011 14:24:04 +0000 (15:24 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 16 Apr 2015 17:16:44 +0000 (14:16 -0300)
Ensure that the transit flag (in field CV) is set
if return message is 'wasTransfered'

CV is being set for other return conditions but not for
wasTransfered [sic] The presence of this flag is required to
route returns to the correct bin if the SC unit is so
enabled

Signed-off-by: Frederic Demians <f.demians@tamil.fr>
  I agree with the solution to an issue I've already encountered and
  patched localy that way. It would be nice to have a better doc of
  C4::Circulation::AddReturn in order to see immediately that
  WasTransfered is a valid feedback for a check-in.

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>

C4/SIP/ILS/Transaction/Checkin.pm

index c7b959e..bc1c433 100644 (file)
@@ -91,6 +91,10 @@ sub do_checkin {
         $self->destination_loc($iteminformation->{homebranch});
         $self->alert_type('04');            # send to other branch
     }
+    if ($messages->{WasTransfered}) { # set into transit so tell unit
+        $self->destination_loc($iteminformation->{homebranch});
+        $self->alert_type('04');            # send to other branch
+    }
     if ($messages->{ResFound}) {
         $self->hold($messages->{ResFound});
         if ($branch eq $messages->{ResFound}->{branchcode}) {