Bug 9108 - Add uk/euro date sort filter to pages which require it
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / spent.tt
1 [% USE KohaDates %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha &rsaquo; Acquisitions &rsaquo; Spent</title>
4 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
5 [% INCLUDE 'doc-head-close.inc' %]
6 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
7 [% INCLUDE 'datatables-strings.inc' %]
8 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
9 <script type="text/javascript">
10 //<![CDATA[
11  $(document).ready(function() {
12     [% IF (dateformat == 'metric') %]
13         dt_add_type_uk_date();
14     [% END %]
15     var spent = $("#spent").dataTable($.extend(true, {}, dataTablesDefaults, {
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 cellspacing="0" cellpadding="0" border="0" id="spent" class="collapse">
39     <thead>
40     <tr>
41         <th> Title </th>
42         <th> Order </th>
43         <th> Vendor </th>
44         <th> Invoice </th>
45         <th> Itemtype </th>
46         <th> Received </th>
47     <th> Unit price </th>
48     <th> Date ordered </th>
49     <th> Date received </th>
50         <th> Subtotal </th>
51     </tr>
52     </thead>
53
54 [% FOREACH order IN spent %]
55     [% IF loop.odd %]
56     <tr class="highlight">
57     [% ELSE %]
58     <tr>
59     [% END %]
60
61         <td class="cell">
62             [% order.title %]
63         </td>
64         <td class="cell">
65             <a href="/cgi-bin/koha/acqui/orderreceive.pl?ordernumber=[% order.ordernumber %]&amp;biblio=[% order.biblionumber %]&amp;invoiceid=[% order.invoiceid %]">[% order.ordernumber %]</a>
66         </td>
67         <td class="cell">
68             <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% order.booksellerid %]">[% order.booksellerid %]</a>
69         </td>
70         <td class="cell">
71             <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid %]">[% order.invoicenumber %]</a>
72         </td>
73         <td class="cell">
74             [% order.itype %]
75         </td>
76         <td class="cell">
77             [% order.quantityreceived %]
78         </td>
79         <td class="cell" align="right">
80             [% order.unitprice %]
81         </td>
82         <td class="cell" align="right">
83             [% order.entrydate | $KohaDates %]
84         </td>
85         <td class="cell" align="right">
86             [% order.datereceived | $KohaDates %]
87         </td>
88         <td class="cell" align="right">
89             [% order.rowtotal %]
90         </td>
91     </tr>
92 [% END %]
93     <tfoot>
94         [% IF shipmentcosts.size %]
95             <tr valign="top">
96                 <td colspan="9"> Sub total </td>
97                 <td align="right"> [% subtotal %] </td>
98             </tr>
99             [% FOREACH shipmentcost IN shipmentcosts %]
100                 <tr>
101                     <td></td>
102                     <td colspan="8">Shipment cost for invoice [% shipmentcost.invoicenumber %]</td>
103                     <td class="total">[% shipmentcost.shipmentcost %]</td>
104                 </tr>
105             [% END %]
106         [% END %]
107         <tr>
108             <td colspan="9">TOTAL</td>
109             <td class="total">[% total %]</td>
110         </tr>
111     </tfoot>
112 </table>
113
114 </div>
115 </div>
116 <div class="yui-b">
117 [% INCLUDE 'acquisitions-menu.inc' %]
118 </div>
119 </div>
120 [% INCLUDE 'intranet-bottom.inc' %]