From 1ccc22747ea081ac99c0d63305a8229260b11a25 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 4 Jan 2024 16:42:01 +0000 Subject: [PATCH] Bug 22567: Add transfer details to stockrotation page This patch adds any pending/current transfer details into the stockrotation item management page. Signed-off-by: Nick Clemens Signed-off-by: Emily Lamancusa Signed-off-by: Katrin Fischer --- .../prog/en/modules/tools/stockrotation.tt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt index a1fa55af07..dec382dc8b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt @@ -518,7 +518,16 @@ [% sritem.item.biblio.title | html %] [% sritem.item.biblio.author | html %] [% sritem.item.itemcallnumber | html %] - [% sritem.item.get_transfer ? 'Yes' : 'No' | html %] + [% IF ( transfer = sritem.item.get_transfer) %] + [% IF (transfer.reason.match('Stockrotation.*')) %] + [% IF (transfer.datesent) %] + In transit from [% Branches.GetName( transfer.frombranch ) | html %] to [% Branches.GetName( transfer.tobranch ) | html %] since [% transfer.datesent | $KohaDates %] + [% ELSE %] + Transit pending from [% Branches.GetName( transfer.frombranch ) | html %] to [% Branches.GetName( transfer.tobranch ) | html %] since [% transfer.daterequested | $KohaDates %] + [% END %] + [% END %] + [% END %] + [% FOREACH this_stage IN stages %] [% IF this_stage.stage_id == sritem.stage.stage_id %] -- 2.39.5