From 4bef3331e4232b42af5b16bd729a49f53c51fbc2 Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Tue, 28 Jun 2011 15:24:04 +0100 Subject: [PATCH] Bug 13803 Flag to self check book has gone into transit 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 --- C4/SIP/ILS/Transaction/Checkin.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/C4/SIP/ILS/Transaction/Checkin.pm b/C4/SIP/ILS/Transaction/Checkin.pm index c7b959e..bc1c433 100644 --- a/C4/SIP/ILS/Transaction/Checkin.pm +++ b/C4/SIP/ILS/Transaction/Checkin.pm @@ -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}) { -- 2.1.0