Bug 33005: (follow-up) Add spans for translatability
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / spent.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE KohaDates %]
4 [% USE ItemTypes %]
5 [% USE Price %]
6 [% PROCESS 'i18n.inc' %]
7 [% SET footerjs = 1 %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>Spent &rsaquo; Acquisitions &rsaquo; Koha</title>
10 [% INCLUDE 'doc-head-close.inc' %]
11 </head>
12
13 <body id="acq_spent" class="acq">
14 [% WRAPPER 'header.inc' %]
15     [% INCLUDE 'acquisitions-search.inc' %]
16 [% END %]
17
18 [% WRAPPER 'sub-header.inc' %]
19     [% WRAPPER breadcrumbs %]
20         [% WRAPPER breadcrumb_item %]
21             <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
22         [% END %]
23         [% WRAPPER breadcrumb_item bc_active= 1 %]
24             <span>Spent - [% fund_code | html %]</span>
25         [% END %]
26     [% END #/ WRAPPER breadcrumbs %]
27 [% END #/ WRAPPER sub-header.inc %]
28
29 <div class="main container-fluid">
30     <div class="row">
31         <div class="col-sm-10 col-sm-push-2">
32             <main>
33
34 <h1>Spent - Fund: [% fund_code | html %]</h1>
35
36 <div class="page-section">
37
38     <table id="spent">
39         <thead>
40             <tr>
41             <th class="anti-the">Title</th>
42             <th>[% tp('noun', 'Order') | html %]</th>
43             <th>Vendor</th>
44             <th>Invoice</th>
45             <th>Item types</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             <tr>
56                 <td class="cell">
57                     <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber | uri %]">
58                         [% order.title | html %]
59                     </a>
60                 </td>
61                 <td class="cell">
62                     [% order.ordernumber | html %]
63                 </td>
64                 <td class="cell">
65                     <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% order.booksellerid | uri %]">[% order.vendorname | html %]</a>
66                 </td>
67                 <td class="cell">
68                     <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% order.invoiceid | uri %]">[% order.invoicenumber | html %]</a>
69                 </td>
70                 <td class="cell">
71                     [% FOREACH itemtype IN order.itemtypes %]
72                         [% ItemTypes.GetDescription( itemtype ) | html %]
73                         [% IF !loop.last() %] | [% END %]
74                     [% END %]
75                 </td>
76                 <td class="cell">
77                     [% order.quantityreceived | html %]
78                 </td>
79                 <td class="cell">
80                     [% order.unitprice_tax_included | $Price %]
81                 </td>
82                 <td class="cell" data-order="[% order.entrydate | html %]">
83                     [% order.entrydate | $KohaDates %]
84                 </td>
85                 <td class="cell" data-order="[% order.datereceived | html %]">
86                     [% order.datereceived | $KohaDates %]
87                 </td>
88                 <td class="data cell">
89                     [% order.rowtotal | $Price %]
90                 </td>
91             </tr>
92         [% END %]
93
94         <tfoot>
95             [% IF shipmentcosts.size || ( adjustments && adjustments.count > 0 ) %]
96                 <tr>
97                     <td colspan="9"> Sub total </td>
98                     <td class="data"> [% subtotal | $Price %] </td>
99                 </tr>
100             [% END %]
101             [% IF shipmentcosts.size %]
102                 [% FOREACH shipmentcost IN shipmentcosts %]
103                     <tr>
104                         <td></td>
105                         <td colspan="8">Shipping cost for invoice
106                             <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% shipmentcost.invoiceid | uri %]">
107                                 [% shipmentcost.invoicenumber | html %]
108                             </a>
109                         </td>
110                         <td class="data total">[% shipmentcost.shipmentcost | $Price %]</td>
111                     </tr>
112                 [% END %]
113             [% END %]
114             [% IF ( adjustments && adjustments.count > 0 ) %]
115                 [% FOREACH adjustment IN adjustments %]
116                     <tr>
117                         <td></td>
118                         <td colspan="8">Adjustment cost for invoice
119                             <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% adjustment.invoiceid | uri %]">
120                                 [% adjustment.invoice.invoicenumber | html %]
121                             </a>
122                         </td>
123                         <td class="data total">[% adjustment.adjustment | $Price %]</td>
124                     </tr>
125                 [% END %]
126             [% END %]
127             <tr>
128                 <td colspan="9">TOTAL</td>
129                 <td class="data total">[% total | $Price %]</td>
130             </tr>
131         </tfoot>
132     </table>
133
134 </div> <!-- /.page-section -->
135
136 </main>
137 </div> <!-- /.col-sm-10.col-sm-push-2 -->
138
139 <div class="col-sm-2 col-sm-pull-10">
140     <aside>
141         [% INCLUDE 'acquisitions-menu.inc' %]
142     </aside>
143 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
144 </div> <!-- /.row -->
145
146 [% MACRO jsinclude BLOCK %]
147     [% Asset.js("js/acquisitions-menu.js") | $raw %]
148     [% INCLUDE 'datatables.inc' %]
149     <script>
150         $(document).ready(function() {
151             $("#spent").dataTable($.extend(true, {}, dataTablesDefaults, {
152                 "aoColumnDefs": [
153                     { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
154                 ],
155                 "sPaginationType": "full"
156             } ) );
157         });
158     </script>
159 [% END %]
160
161 [% INCLUDE 'intranet-bottom.inc' %]