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