Bug 16242 - Move staff client JavaScript out of language directory
[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="[% 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             [% order.title %]
58         </td>
59         <td class="cell">
60         [% order.ordernumber %]
61         </td>
62         <td class="cell">
63             <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% order.booksellerid %]">[% order.booksellerid %]</a>
64         </td>
65         <td class="cell">
66             <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid %]">[% order.invoicenumber %]</a>
67         </td>
68         <td class="cell">
69         [% ItemTypes.GetDescription( order.itype ) %]
70         </td>
71         <td class="cell">
72             [% order.quantityreceived %]
73         </td>
74     <td class="cell">
75             [% order.unitprice %]
76         </td>
77     <td class="cell">
78         <span title="[% order.entrydate %]">[% order.entrydate | $KohaDates %]</span>
79         </td>
80     <td class="cell">
81         <span title="[% order.datereceived %]">[% order.datereceived | $KohaDates %]</span>
82         </td>
83     <td class="data cell">
84             [% order.rowtotal %]
85         </td>
86     </tr>
87 [% END %]
88     <tfoot>
89         [% IF shipmentcosts.size %]
90             <tr valign="top">
91                 <td colspan="9"> Sub total </td>
92                 <td class="data"> [% subtotal %] </td>
93             </tr>
94             [% FOREACH shipmentcost IN shipmentcosts %]
95                 <tr>
96                     <td></td>
97                     <td colspan="8">Shipping cost for invoice [% shipmentcost.invoicenumber %]</td>
98                     <td class="data total">[% shipmentcost.shipmentcost %]</td>
99                 </tr>
100             [% END %]
101         [% END %]
102         <tr>
103             <td colspan="9">TOTAL</td>
104             <td class="data total">[% total %]</td>
105         </tr>
106     </tfoot>
107 </table>
108
109 </div>
110 </div>
111 <div class="yui-b">
112 [% INCLUDE 'acquisitions-menu.inc' %]
113 </div>
114 </div>
115 [% INCLUDE 'intranet-bottom.inc' %]