From 09fad02ae84ce07879e24bbff78ed00d87d124f1 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 6 Jan 2022 13:58:26 +0000 Subject: [PATCH] Bug 29809: Update stockration tool to reflect method name change Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart Signed-off-by: Fridolin Somers --- .../prog/en/modules/tools/stockrotation.tt | 30 +++++++++---------- tools/stockrotation.pl | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) 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 9cdaf56000..0deccf65ce 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt @@ -370,8 +370,8 @@ [% IF stage.stockrotationitems.count > 0 %]

This stage contains the following item(s):

    - [% FOREACH item IN stage.stockrotationitems %] -
  • [% item.itemnumber.biblio.title | html %] (Barcode: [% item.itemnumber.barcode | html %])
  • + [% FOREACH sritem IN stage.stockrotationitems %] +
  • [% sritem.item.biblio.title | html %] (Barcode: [% sritem.item.barcode | html %])
  • [% END %]
[% END %] @@ -436,7 +436,7 @@ - [% IF items.count > 0 %] + [% IF sritems.count > 0 %] @@ -450,16 +450,16 @@ - [% FOREACH item IN items %] + [% FOREACH sritem IN sritems %] - - - - - + + + + +
[% item.itemnumber.barcode | html %][% item.itemnumber.biblio.title | html %][% item.itemnumber.biblio.author | html %][% item.itemnumber.itemcallnumber | html %][% item.itemnumber.get_transfer ? 'Yes' : 'No' | html %][% sritem.item.barcode | html %][% sritem.item.biblio.title | html %][% sritem.item.biblio.author | html %][% sritem.item.itemcallnumber | html %][% sritem.item.get_transfer ? 'Yes' : 'No' | html %] [% FOREACH this_stage IN stages %] - [% IF this_stage.stage_id == item.stage.stage_id %] + [% IF this_stage.stage_id == sritem.stage.stage_id %] [% ELSE %] @@ -473,9 +473,9 @@ [% END %] - [% in_transit = item.itemnumber.get_transfer %] + [% in_transit = sritem.item.get_transfer %] [% IF !in_transit && stages.size > 1 %] - + [% ELSE %] [% END %] @@ -483,19 +483,19 @@ Move to next stage [% IF !in_transit %] - + [% ELSE %] [% END %] - [% IF item.indemand %] + [% IF sritem.indemand %] Remove "In demand" [% ELSE %] Add "In demand" [% END %] [% IF !in_transit %] - + [% ELSE %] [% END %] diff --git a/tools/stockrotation.pl b/tools/stockrotation.pl index b1d2548456..4523c99174 100755 --- a/tools/stockrotation.pl +++ b/tools/stockrotation.pl @@ -268,7 +268,7 @@ if (!defined $op) { $template->param( rota_id => $params{rota_id}, error => $params{error}, - items => $items, + sritems => $sritems, branches => get_branches(), stages => get_stages($rota), rota => $rota, -- 2.39.5