Bug 29234: Further clean Z3950 Tests
[srvgit] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / ordered.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>Ordered &rsaquo; Acquisitions &rsaquo; Koha</title>
10 [% INCLUDE 'doc-head-close.inc' %]
11 </head>
12
13 <body id="acq_ordered" class="acq">
14 [% WRAPPER 'header.inc' %]
15     [% INCLUDE 'acquisitions-search.inc' %]
16 [% END %]
17
18
19 [% WRAPPER 'sub-header.inc' %]
20 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
21     <ol>
22         <li>
23             <a href="/cgi-bin/koha/mainpage.pl">Home</a>
24         </li>
25         <li>
26             <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
27         </li>
28         <li>
29             <a href="#" aria-current="page">
30                 Ordered - [% fund_code | html %]
31             </a>
32         </li>
33     </ol>
34 </nav>
35 [% END %]
36
37 <div class="main container-fluid">
38     <div class="row">
39         <div class="col-sm-10 col-sm-push-2">
40             <main>
41
42 <h1>Ordered - Fund: [% fund_code | html %]</h1>
43
44                 <div class="page-section">
45                     <table id="spent">
46                         <thead>
47                         <tr>
48                         <th class="anti-the"> Title </th>
49                         <th> [% tp('noun', 'Order') | html %] </th>
50                         <th> Vendor </th>
51                         <th> Item types </th>
52                         <th> Left on order </th>
53                         <th> Estimated cost per unit </th>
54                         <th> Date ordered </th>
55                         <th> Subtotal </th>
56                         </tr>
57                         </thead>
58                         <tbody>
59                     [% FOREACH order IN ordered %]
60                         <tr>
61                         <td class="cell">
62                                 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber | uri %]">
63                             [% order.title | html %]
64                                 </a>
65                         </td>
66                         <td class="cell">
67                             [% IF ( CAN_user_acquisition_order_manage ) %]
68                                 <a href="/cgi-bin/koha/acqui/neworderempty.pl?ordernumber=[% order.ordernumber | uri %]&amp;booksellerid=[% order.booksellerid | uri %]&amp;basketno=[% order.basketno | uri %]">[% order.ordernumber | html %]</a>
69                             [% ELSE %]
70                                 [% order.ordernumber | html %]
71                             [% END %]
72                         </td>
73                         <td class="cell">
74                             <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% order.booksellerid | uri %]">[% order.vendorname | html %]</a>
75                         </td>
76                         <td class="cell">
77                             [% FOREACH itemtype IN order.itemtypes %]
78                                 [% ItemTypes.GetDescription( itemtype ) | html %]
79                                 [% IF !loop.last() %] | [% END %]
80                             [% END %]
81                         </td>
82                         <td class="cell">
83                             [% order.left | html %]
84                         </td>
85                         <td class="data cell">
86                             [% order.ecost_tax_included | $Price %]
87                         </td>
88                         <td class="cell" data-order="[% order.entrydate | html %]">
89                             [% order.entrydate | $KohaDates %]
90                         </td>
91                         <td class="data cell">
92                             [% order.subtotal | $Price %]
93                         </td>
94                         </tr>
95                     [% END %]
96                         </tbody>
97                         <tfoot>
98                         [% IF ( adjustments && adjustments.count > 0 ) %]
99                                 [% FOREACH adjustment IN adjustments %]
100                                     <tr>
101                                         <td></td>
102                                         <td colspan="6">Adjustment cost for invoice
103                                             <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% adjustment.invoiceid | uri %]">
104                                                 [% adjustment.invoice.invoicenumber | html %]
105                                             </a>
106                                         </td>
107                                         <td class="data total">[% adjustment.adjustment | $Price %]</td>
108                                     </tr>
109                                 [% END %]
110
111                         [% END %]
112                         <tr>
113                             <td> Total </td>
114                             <td> </td>
115                             <td> </td>
116                             <td> </td>
117                             <td> </td>
118                             <td> </td>
119                             <td> </td>
120                             <td class="data">
121                                 [% total | $Price %]
122                             </td>
123                         </tr>
124                         </tfoot>
125
126                     </table>
127                 </div> <!-- /.page-section -->
128
129 </main>
130 </div> <!-- /.col-sm-10.col-sm-push-2 -->
131
132 <div class="col-sm-2 col-sm-pull-10">
133     <aside>
134         [% INCLUDE 'acquisitions-menu.inc' %]
135     </aside>
136 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
137 </div> <!-- /.row -->
138
139 [% MACRO jsinclude BLOCK %]
140     [% Asset.js("js/acquisitions-menu.js") | $raw %]
141     [% INCLUDE 'datatables.inc' %]
142     <script>
143         $(document).ready(function() {
144             $("#spent").dataTable($.extend(true, {}, dataTablesDefaults, {
145                 "aoColumnDefs": [
146                     { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
147                 ],
148                 "sPaginationType": "full"
149             }));
150         });
151     </script>
152 [% END %]
153
154 [% INCLUDE 'intranet-bottom.inc' %]