View | Details | Raw Unified | Return to bug 31671
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt (-1 / +16 lines)
Lines 4-9 Link Here
4
[% USE ItemTypes %]
4
[% USE ItemTypes %]
5
[% USE AuthorisedValues %]
5
[% USE AuthorisedValues %]
6
[% PROCESS 'i18n.inc' %]
6
[% PROCESS 'i18n.inc' %]
7
[% SET footerjs = 1 %]
7
[% INCLUDE 'doc-head-open.inc' %]
8
[% INCLUDE 'doc-head-open.inc' %]
8
<title>[% FILTER collapse %]
9
<title>[% FILTER collapse %]
9
    [% t("Transfers") | html %] &rsaquo;
10
    [% t("Transfers") | html %] &rsaquo;
Lines 217-222 Link Here
217
                                        <th class="tf-ccode">Collection</th>
218
                                        <th class="tf-ccode">Collection</th>
218
                                        <th class="tf-origin">Origin</th>
219
                                        <th class="tf-origin">Origin</th>
219
                                        <th class="tf-destination">Destination</th>
220
                                        <th class="tf-destination">Destination</th>
221
                                        <th class="tf-printslip">Actions</th>
220
                                    </tr>
222
                                    </tr>
221
                                    [% FOREACH trsfitemloo IN trsfitemloop %]
223
                                    [% FOREACH trsfitemloo IN trsfitemloop %]
222
                                        <tr>
224
                                        <tr>
Lines 231-236 Link Here
231
                                            <td class="tf-ccode">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => trsfitemloo.item.ccode ) | html %]</td>
233
                                            <td class="tf-ccode">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => trsfitemloo.item.ccode ) | html %]</td>
232
                                            <td class="tf-origin">[% Branches.GetName( trsfitemloo.frombrcd ) | html %]</td>
234
                                            <td class="tf-origin">[% Branches.GetName( trsfitemloo.frombrcd ) | html %]</td>
233
                                            <td class="tf-destination">[% Branches.GetName( trsfitemloo.tobrcd ) | html %]</td>
235
                                            <td class="tf-destination">[% Branches.GetName( trsfitemloo.tobrcd ) | html %]</td>
236
                                            <td class="tf-printslip">
237
                                                <button type="button" class="btn btn-default btn-sm printtransferslip" data-itemnumber="[% trsfitemloo.item.itemnumber | html %]" data-tobranch="[% trsfitemloo.tobrcd | html %]"><i class="fa fa-print"></i> Print slip</button>
238
                                            </td>
234
                                        </tr>
239
                                        </tr>
235
                                    [% END # /FOREACH trsfitemloo %]
240
                                    [% END # /FOREACH trsfitemloo %]
236
                                </table>
241
                                </table>
Lines 249-252 Link Here
249
            [% END %]
254
            [% END %]
250
        </div> <!-- /.row -->
255
        </div> <!-- /.row -->
251
256
257
[% MACRO jsinclude BLOCK %]
258
    <script>
259
        $(".printtransferslip").on("click", function(e){
260
            e.preventDefault();
261
            var itemnumber = $(this).attr('data-itemnumber');
262
            var to_branch = $(this).attr('data-tobranch');
263
            window.open("/cgi-bin/koha/circ/transfer-slip.pl?transferitem=" + itemnumber + "&branchcode=" + to_branch);
264
        });
265
    </script>
266
[% END %]
267
252
[% INCLUDE 'intranet-bottom.inc' %]
268
[% INCLUDE 'intranet-bottom.inc' %]
253
- 

Return to bug 31671