From fdfbd66040049cba6e8210fb8b6953d08ac02d20 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. --- .../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 79f80778238..3d57ae615ae 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt @@ -492,7 +492,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.43.0