Bugzilla – Attachment 142000 Details for
Bug 31671
Add button to print transfer slips to the 'Transfer items' page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31671: Add print slip button to transfer page
Bug-31671-Add-print-slip-button-to-transfer-page.patch (text/plain), 2.74 KB, created by
Lucas Gass (lukeg)
on 2022-10-17 17:04:45 UTC
(
hide
)
Description:
Bug 31671: Add print slip button to transfer page
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2022-10-17 17:04:45 UTC
Size:
2.74 KB
patch
obsolete
>From b8372807ea0fca50355902c9819262addb8ccfe7 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Mon, 17 Oct 2022 17:02:39 +0000 >Subject: [PATCH] Bug 31671: Add print slip button to transfer page > >To test: >1. Apply patch >2. Go to Circulation / Transfer >3. Try transfering some items and notice the 'Print transfer slip' button >4. Try clicking on it and make sure it generates correctly and with the correct information on the slip >--- > .../prog/en/modules/circ/branchtransfers.tt | 14 +++++++++++++- > 1 file changed, 13 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt >index 526b8a85a4..cc0621da20 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt >@@ -2,6 +2,7 @@ > [% USE Branches %] > [% USE ItemTypes %] > [% USE AuthorisedValues %] >+[% SET footerjs = 1 %] > [% INCLUDE 'doc-head-open.inc' %] > <title>Transfers › Circulation › Koha</title> > [% INCLUDE 'doc-head-close.inc' %] >@@ -209,6 +210,7 @@ > <th class="tf-ccode">Collection</th> > <th class="tf-origin">Origin</th> > <th class="tf-destination">Destination</th> >+ <th class="tf-printslip">Print transfer slip</th> > </tr> > [% FOREACH trsfitemloo IN trsfitemloop %] > <tr> >@@ -224,6 +226,7 @@ > <td class="tf-ccode">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => trsfitemloo.item.ccode ) | html %]</td> > <td class="tf-origin">[% Branches.GetName( trsfitemloo.frombrcd ) | html %]</td> > <td class="tf-destination">[% Branches.GetName( trsfitemloo.tobrcd ) | html %]</td> >+ <td class="tf-printslip"><input class="printtransferslip" type="button" name="printtransferslip" value="Print transfer slip" data-itemnumber="[% trsfitemloo.item.itemnumber | html %]" data-tobranch="[% trsfitemloo.tobrcd | html %]"></td> > </tr> > [% END %] > </table> >@@ -242,5 +245,14 @@ > </div> <!-- /.col-sm-2.col-sm-pull-10 --> > [% END %] > </div> <!-- /.row --> >- >+[% MACRO jsinclude BLOCK %] >+ <script> >+ $('.printtransferslip').click(function(){ >+ var itemnumber = $(this).attr('data-itemnumber'); >+ var to_branch = $(this).attr('data-tobranch'); >+ window.open("/cgi-bin/koha/circ/transfer-slip.pl?transferitem=" + itemnumber + "&branchcode=" + to_branch); >+ return false; >+ }) >+ </script> >+[% END %] > [% INCLUDE 'intranet-bottom.inc' %] >-- >2.30.2
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 31671
:
142000
|
142571
|
165332
|
165343
|
165369