Bug 16686: Fix "Item in transit from since" in Holds tab

POC, tests needed.

Alternative patch works for me.
Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Marc <veron@veron.ch>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2016-07-03 15:32:47 +01:00 committed by Kyle M Hall
parent eee1f59db3
commit 4ecb11eaa1
2 changed files with 8 additions and 2 deletions

View File

@ -74,6 +74,11 @@ sub holding_branch {
return $self->{_holding_branch};
}
sub transfer {
my ( $self ) = @_;
return $self->_result->branchtransfers->first;
}
=head3 last_returned_by
Gets and sets the last borrower to return an item.

View File

@ -625,8 +625,9 @@ Using this account is not recommended because some parts of Koha will not functi
[% END %]
[% ELSE %]
[% IF ( RESERVE.is_in_transit ) %]
Item in transit from <b> [% RESERVE.frombranch %]</b> since
[% RESERVE.datesent | $KohaDates %]
[% SET transfer = RESERVE.item.transfer %]
Item in transit from <b> [% transfer.frombranch.branchname %]</b> since
[% transfer.datesent | $KohaDates %]
[% ELSIF ( RESERVE.suspend ) %]
Suspended [% IF ( RESERVE.suspend_until ) %] until [% RESERVE.suspend_until %] [% END %]
[% ELSE %]