Bug 10090: display item type description instead of code on acq ordered and spent...
[koha.git] / 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="[% themelang %]/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     [% IF (dateformat == 'metric') %]
12         dt_add_type_uk_date();
13     [% END %]
14     var spent = $("#spent").dataTable($.extend(true, {}, dataTablesDefaults, {
15         "sPaginationType": "four_button"
16     } ) );
17  });
18  //]]>
19 </script>
20 </head>
21 <body id="acq_spent" class="acq">
22 [% INCLUDE 'header.inc' %]
23 [% INCLUDE 'acquisitions-search.inc' %]
24
25 <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>
26
27 <div id="doc3" class="yui-t2">
28
29 <div id="bd">
30     <div id="yui-main">
31         <div class="yui-b">
32
33 <h1>Fund: [% fund_code %]</h1>
34 <h2>Spent</h2>
35
36
37 <table cellspacing="0" cellpadding="0" border="0" id="spent" class="collapse">
38     <thead>
39     <tr>
40         <th> Title </th>
41         <th> Order </th>
42         <th> Vendor </th>
43         <th> Invoice </th>
44         <th> Itemtype </th>
45         <th> Received </th>
46     <th> Unit price </th>
47     <th> Date ordered </th>
48     <th> Date received </th>
49         <th> Subtotal </th>
50     </tr>
51     </thead>
52
53 [% FOREACH order IN spent %]
54     [% IF loop.odd %]
55     <tr class="highlight">
56     [% ELSE %]
57     <tr>
58     [% END %]
59
60         <td class="cell">
61             [% order.title %]
62         </td>
63         <td class="cell">
64         [% order.ordernumber %]
65         </td>
66         <td class="cell">
67             <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% order.booksellerid %]">[% order.booksellerid %]</a>
68         </td>
69         <td class="cell">
70             <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid %]">[% order.invoicenumber %]</a>
71         </td>
72         <td class="cell">
73         [% ItemTypes.GetDescription( order.itype ) %]
74         </td>
75         <td class="cell">
76             [% order.quantityreceived %]
77         </td>
78         <td class="cell" align="right">
79             [% order.unitprice %]
80         </td>
81         <td class="cell" align="right">
82             [% order.entrydate | $KohaDates %]
83         </td>
84         <td class="cell" align="right">
85             [% order.datereceived | $KohaDates %]
86         </td>
87         <td class="cell" align="right">
88             [% order.rowtotal %]
89         </td>
90     </tr>
91 [% END %]
92     <tfoot>
93         [% IF shipmentcosts.size %]
94             <tr valign="top">
95                 <td colspan="9"> Sub total </td>
96                 <td align="right"> [% subtotal %] </td>
97             </tr>
98             [% FOREACH shipmentcost IN shipmentcosts %]
99                 <tr>
100                     <td></td>
101                     <td colspan="8">Shipping cost for invoice [% shipmentcost.invoicenumber %]</td>
102                     <td class="total">[% shipmentcost.shipmentcost %]</td>
103                 </tr>
104             [% END %]
105         [% END %]
106         <tr>
107             <td colspan="9">TOTAL</td>
108             <td class="total">[% total %]</td>
109         </tr>
110     </tfoot>
111 </table>
112
113 </div>
114 </div>
115 <div class="yui-b">
116 [% INCLUDE 'acquisitions-menu.inc' %]
117 </div>
118 </div>
119 [% INCLUDE 'intranet-bottom.inc' %]