From 63673d70cd08b198d3b904b73da82f1e06d64f7b Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 30 May 2018 13:07:39 +0000 Subject: [PATCH] Bug 17561: (follow-up) Pass itemnumber on returns and correct itemnumber param in circulation To test: 1 - Place two holds on a bib for a single patron 2 - Check in both items, confirm the screen message and slip are correct 3 - Checkout both items to another patron, confirm the screen message and slip are correct Signed-off-by: Jonathan Druart Signed-off-by: Nick Clemens --- circ/returns.pl | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 4 ++-- koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/circ/returns.pl b/circ/returns.pl index 1e09336ac1..a82bdc1432 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -80,6 +80,7 @@ if ( $query->param('print_slip') ) { print_slip => 1, borrowernumber => scalar $query->param('borrowernumber'), # FIXME We should send a Koha::Patron and raise an error if not exist. biblionumber => scalar $query->param('biblionumber'), + itemnumber => scalar $query->param('itemnumber'), ); } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index d4955394e0..a6e6ba00fa 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -257,7 +257,7 @@ - + [% END %] @@ -267,7 +267,7 @@ - + [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index 119116fa07..051d66ac64 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -709,7 +709,7 @@ $(".modal").on('hidden.bs.modal', function (e) { $("#barcode").focus(); }); [% IF print_slip %] - Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber %]&biblionumber=[% biblionumber %]'); + Dopop('hold-transfer-slip.pl?borrowernumber=[% borrowernumber %]&biblionumber=[% biblionumber %]&itemnumber=[% itemnumber %]'); [% END %] var columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'returns', 'checkedintable', 'json' ) %] -- 2.39.5