Merge remote-tracking branch 'origin/new/bug_8382'
[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     var spent = $("#spent").dataTable($.extend(true, {}, dataTablesDefaults, {
13         "sPaginationType": "four_button"
14     } ) );
15  });
16  //]]>
17 </script>
18 </head>
19 <body id="acq_spent" class="acq">
20 [% INCLUDE 'header.inc' %]
21 [% INCLUDE 'acquisitions-search.inc' %]
22
23 <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>
24
25 <div id="doc3" class="yui-t2">
26
27 <div id="bd">
28     <div id="yui-main">
29         <div class="yui-b">
30
31 <h1>Fund: [% fund_code %]</h1>
32 <h2>Spent</h2>
33
34
35 <table cellspacing="0" cellpadding="0" border="0" id="spent" class="collapse">
36     <thead>
37     <tr>
38         <th> Title </th>
39         <th> Order </th>
40         <th> Vendor </th>
41         <th> Invoice </th>
42         <th> Itemtype </th>
43         <th> Received </th>
44     <th> Unit price </th>
45     <th> Date ordered </th>
46     <th> Date received </th>
47         <th> Subtotal </th>
48     </tr>
49     </thead>
50
51 [% FOREACH order IN spent %]
52     [% IF loop.odd %]
53     <tr class="highlight">
54     [% ELSE %]
55     <tr>
56     [% END %]
57
58         <td class="cell">
59             [% order.title %]
60         </td>
61         <td class="cell">
62             <a href="/cgi-bin/koha/acqui/orderreceive.pl?ordernumber=[% order.ordernumber %]&amp;biblio=[% order.biblionumber %]&amp;invoiceid=[% order.invoiceid %]">[% order.ordernumber %]</a>
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             [% order.itype %]
72         </td>
73         <td class="cell">
74             [% order.quantityreceived %]
75         </td>
76         <td class="cell" align="right">
77             [% order.unitprice %]
78         </td>
79         <td class="cell" align="right">
80             [% order.entrydate | $KohaDates %]
81         </td>
82         <td class="cell" align="right">
83             [% order.datereceived | $KohaDates %]
84         </td>
85         <td class="cell" align="right">
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 align="right"> [% subtotal %] </td>
95             </tr>
96             [% FOREACH shipmentcost IN shipmentcosts %]
97                 <tr>
98                     <td></td>
99                     <td colspan="8">Shipment cost for invoice [% shipmentcost.invoicenumber %]</td>
100                     <td class="total">[% shipmentcost.shipmentcost %]</td>
101                 </tr>
102             [% END %]
103         [% END %]
104         <tr>
105             <td colspan="9">TOTAL</td>
106             <td class="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' %]