Bugzilla – Attachment 129902 Details for
Bug 29809
StockRotationItems->itemnumber is poorly named
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29809: Update stockration tool to reflect method name change
Bug-29809-Update-stockration-tool-to-reflect-metho.patch (text/plain), 7.87 KB, created by
Jonathan Druart
on 2022-01-27 16:15:17 UTC
(
hide
)
Description:
Bug 29809: Update stockration tool to reflect method name change
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-01-27 16:15:17 UTC
Size:
7.87 KB
patch
obsolete
>From cd7c19189a5b60ff6f0161f27208948fb55e1f9c Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >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 <nick@bywatersolutions.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > .../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 9cdaf56000e..0deccf65ced 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 %] > <p>This stage contains the following item(s):</p> > <ul> >- [% FOREACH item IN stage.stockrotationitems %] >- <li>[% item.itemnumber.biblio.title | html %] (Barcode: [% item.itemnumber.barcode | html %])</li> >+ [% FOREACH sritem IN stage.stockrotationitems %] >+ <li>[% sritem.item.biblio.title | html %] (Barcode: [% sritem.item.barcode | html %])</li> > [% END %] > </ul> > [% END %] >@@ -436,7 +436,7 @@ > </form> <!-- /#dd_rota_item_form --> > </div> <!-- /#addItemsModal --> > >- [% IF items.count > 0 %] >+ [% IF sritems.count > 0 %] > <table id="stock_rotation_manage_items" class="items_table" role="grid"> > <thead> > <tr> >@@ -450,16 +450,16 @@ > </tr> > </thead> > <tbody> >- [% FOREACH item IN items %] >+ [% FOREACH sritem IN sritems %] > <tr> >- <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% item.id | uri %]&biblionumber=[% item.itemnumber.biblio.id | uri %]#item[% item.id | uri %]">[% item.itemnumber.barcode | html %]</a></td> >- <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% item.itemnumber.biblio.id | uri %]">[% item.itemnumber.biblio.title | html %]</a></td> >- <td>[% item.itemnumber.biblio.author | html %]</td> >- <td>[% item.itemnumber.itemcallnumber | html %]</td> >- <td>[% item.itemnumber.get_transfer ? 'Yes' : 'No' | html %]</td> >+ <td><a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% sritem.id | uri %]&biblionumber=[% sritem.item.biblio.id | uri %]#item[% sritem.id | uri %]">[% sritem.item.barcode | html %]</a></td> >+ <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% sritem.item.biblio.id | uri %]">[% sritem.item.biblio.title | html %]</a></td> >+ <td>[% sritem.item.biblio.author | html %]</td> >+ <td>[% sritem.item.itemcallnumber | html %]</td> >+ <td>[% sritem.item.get_transfer ? 'Yes' : 'No' | html %]</td> > <td> > [% FOREACH this_stage IN stages %] >- [% IF this_stage.stage_id == item.stage.stage_id %] >+ [% IF this_stage.stage_id == sritem.stage.stage_id %] > <span class="stage highlight_stage"> > [% ELSE %] > <span class="stage"> >@@ -473,9 +473,9 @@ > [% END %] > </td> > <td class="actions"> >- [% in_transit = item.itemnumber.get_transfer %] >+ [% in_transit = sritem.item.get_transfer %] > [% IF !in_transit && stages.size > 1 %] >- <a class="btn btn-default btn-xs" href="?op=move_to_next_stage&rota_id=[% rota.id | uri %]&item_id=[% item.id | uri %]&stage_id=[% item.stage.stage_id | uri %]"> >+ <a class="btn btn-default btn-xs" href="?op=move_to_next_stage&rota_id=[% rota.id | uri %]&item_id=[% sritem.id | uri %]&stage_id=[% sritem.stage.stage_id | uri %]"> > [% ELSE %] > <a class="btn btn-default btn-xs" disabled> > [% END %] >@@ -483,19 +483,19 @@ > Move to next stage > </a> > [% IF !in_transit %] >- <a class="btn btn-default btn-xs" href="?op=toggle_in_demand&stage_id=[% item.stage.stage_id | uri %]&item_id=[% item.id | uri %]&rota_id=[% rota.id | uri %]"> >+ <a class="btn btn-default btn-xs" href="?op=toggle_in_demand&stage_id=[% sritem.stage.stage_id | uri %]&item_id=[% sritem.id | uri %]&rota_id=[% rota.id | uri %]"> > [% ELSE %] > <a class="btn btn-default btn-xs" disabled> > [% END %] > <i class="fa fa-fire"></i> >- [% IF item.indemand %] >+ [% IF sritem.indemand %] > <span>Remove "In demand"</span> > [% ELSE %] > <span>Add "In demand"</span> > [% END %] > </a> > [% IF !in_transit %] >- <a class="btn btn-default btn-xs" href="?op=confirm_remove_from_rota&stage_id=[% item.stage.stage_id | uri %]&item_id=[% item.id | uri %]&rota_id=[% rota.id | uri %]"> >+ <a class="btn btn-default btn-xs" href="?op=confirm_remove_from_rota&stage_id=[% sritem.stage.stage_id | uri %]&item_id=[% sritem.id | uri %]&rota_id=[% rota.id | uri %]"> > [% ELSE %] > <a class="btn btn-default btn-xs" disabled> > [% END %] >diff --git a/tools/stockrotation.pl b/tools/stockrotation.pl >index b1d25484561..4523c991741 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.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29809
:
129086
|
129087
|
129548
|
129549
|
129550
|
129901
| 129902 |
129903
|
129904