Bug 10904: Limit patron update request management by branch
[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     $("#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     [% 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         [% order.ordernumber %]
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         [% ItemTypes.GetDescription( order.itype ) %]
75         </td>
76         <td class="cell">
77             [% order.quantityreceived %]
78         </td>
79     <td class="cell">
80             [% order.unitprice %]
81         </td>
82     <td class="cell">
83         <span title="[% order.entrydate %]">[% order.entrydate | $KohaDates %]</span>
84         </td>
85     <td class="cell">
86         <span title="[% order.datereceived %]">[% order.datereceived | $KohaDates %]</span>
87         </td>
88     <td class="data cell">
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 class="data"> [% subtotal %] </td>
98             </tr>
99             [% FOREACH shipmentcost IN shipmentcosts %]
100                 <tr>
101                     <td></td>
102                     <td colspan="8">Shipping cost for invoice [% shipmentcost.invoicenumber %]</td>
103                     <td class="data total">[% shipmentcost.shipmentcost %]</td>
104                 </tr>
105             [% END %]
106         [% END %]
107         <tr>
108             <td colspan="9">TOTAL</td>
109             <td class="data 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' %]