From faf16339af6193fec453733927dae2128c068a32 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 Signed-off-by: Frederic Demians 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. --- 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.3.5