Bug 17771: Add link to bibliographic record on spent/ordered lists in acquisitions
[koha_ffzg] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / spent.tt
1 [% USE KohaDates %]
2 [% USE ItemTypes %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha &rsaquo; Acquisitions &rsaquo; Spent</title>
5 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
6 [% INCLUDE 'doc-head-close.inc' %]
7 [% INCLUDE 'datatables.inc' %]
8 <script type="text/javascript">
9 //<![CDATA[
10  $(document).ready(function() {
11     $("#spent").dataTable($.extend(true, {}, dataTablesDefaults, {
12         "aoColumnDefs": [
13             { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
14             { "sType": "title-string", "aTargets" : [ "title-string" ] }
15         ],
16         "sPaginationType": "four_button"
17     } ) );
18  });
19  //]]>
20 </script>
21 </head>
22 <body id="acq_spent" class="acq">
23 [% INCLUDE 'header.inc' %]
24 [% INCLUDE 'acquisitions-search.inc' %]
25
26 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; Spent - [% fund_code %]</div>
27
28 <div id="doc3" class="yui-t2">
29
30 <div id="bd">
31     <div id="yui-main">
32         <div class="yui-b">
33
34 <h1>Fund: [% fund_code %]</h1>
35 <h2>Spent</h2>
36
37
38 <table id="spent">
39     <thead>
40     <tr>
41         <th class="anti-the"> Title </th>
42         <th> Order </th>
43         <th> Vendor </th>
44         <th> Invoice </th>
45     <th> Item type </th>
46         <th> Received </th>
47     <th> Unit price </th>
48     <th class="title-string"> Date ordered </th>
49     <th class="title-string"> Date received </th>
50         <th> Subtotal </th>
51     </tr>
52     </thead>
53
54 [% FOREACH order IN spent %]
55     <tr>
56         <td class="cell">
57             <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber %]">
58         [% order.title %]
59             </a>
60         </td>
61         <td class="cell">
62         [% order.ordernumber %]
63         </td>
64         <td class="cell">
65             <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% order.booksellerid %]">[% order.booksellerid %]</a>
66         </td>
67         <td class="cell">
68             <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid %]">[% order.invoicenumber %]</a>
69         </td>
70         <td class="cell">
71         [% ItemTypes.GetDescription( order.itype ) %]
72         </td>
73         <td class="cell">
74             [% order.quantityreceived %]
75         </td>
76     <td class="cell">
77             [% order.unitprice %]
78         </td>
79     <td class="cell">
80         <span title="[% order.entrydate %]">[% order.entrydate | $KohaDates %]</span>
81         </td>
82     <td class="cell">
83         <span title="[% order.datereceived %]">[% order.datereceived | $KohaDates %]</span>
84         </td>
85     <td class="data cell">
86             [% order.rowtotal %]
87         </td>
88     </tr>
89 [% END %]
90     <tfoot>
91         [% IF shipmentcosts.size %]
92             <tr valign="top">
93                 <td colspan="9"> Sub total </td>
94                 <td class="data"> [% subtotal %] </td>
95             </tr>
96             [% FOREACH shipmentcost IN shipmentcosts %]
97                 <tr>
98                     <td></td>
99                     <td colspan="8">Shipping cost for invoice [% shipmentcost.invoicenumber %]</td>
100                     <td class="data total">[% shipmentcost.shipmentcost %]</td>
101                 </tr>
102             [% END %]
103         [% END %]
104         <tr>
105             <td colspan="9">TOTAL</td>
106             <td class="data total">[% total %]</td>
107         </tr>
108     </tfoot>
109 </table>
110
111 </div>
112 </div>
113 <div class="yui-b">
114 [% INCLUDE 'acquisitions-menu.inc' %]
115 </div>
116 </div>
117 [% INCLUDE 'intranet-bottom.inc' %]