Bug 23013: Upgrade DataTables in the staff client
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / ordered.tt
blob483cc8ce37343183d2afb8e219ac13c07c9e34c5
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE KohaDates %]
4 [% USE ItemTypes %]
5 [% USE Price %]
6 [% SET footerjs = 1 %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>Koha &rsaquo; Acquisitions &rsaquo; Ordered</title>
9 [% INCLUDE 'doc-head-close.inc' %]
10 </head>
12 <body id="acq_ordered" class="acq">
13 [% INCLUDE 'header.inc' %]
14 [% INCLUDE 'acquisitions-search.inc' %]
16 <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; Ordered - [% fund_code | html %]</div>
18 <div class="main container-fluid">
19     <div class="row">
20         <div class="col-sm-10 col-sm-push-2">
21             <main>
23 <h1>Fund: [% fund_code | html %]</h1>
24 <h2>Ordered</h2>
26 <table id="spent">
27     <thead>
28     <tr>
29     <th class="anti-the"> Title </th>
30     <th> Order </th>
31     <th> Vendor </th>
32     <th> Item type </th>
33     <th> Left on order </th>
34     <th> Estimated cost per unit </th>
35     <th class="title-string"> Date ordered </th>
36     <th> Subtotal </th>
37     </tr>
38     </thead>
39     <tbody>
40 [% FOREACH order IN ordered %]
41     <tr>
42     <td class="cell">
43             <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber | uri %]">
44         [% order.title | html %]
45             </a>
46     </td>
47     <td class="cell">
48         [% IF ( CAN_user_acquisition_order_manage ) %]
49             <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>
50         [% ELSE %]
51             [% order.ordernumber | html %]
52         [% END %]
53     </td>
54     <td class="cell">
55         <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% order.booksellerid | uri %]">[% order.vendorname | html %]</a>
56     </td>
57     <td class="cell">
58         [% ItemTypes.GetDescription( order.itype ) | html %]
59     </td>
60     <td class="cell">
61         [% order.left | html %]
62     </td>
63     <td class="data cell">
64         [% order.ecost_tax_included | $Price %]
65     </td>
66     <td class="cell">
67         <span title="[% order.entrydate | html %]">[% order.entrydate | $KohaDates %]</span>
68     </td>
69     <td class="data cell">
70         [% order.subtotal | $Price %]
71     </td>
72     </tr>
73 [% END %]
74     </tbody>
75     <tfoot>
76     [% IF ( adjustments && adjustments.count > 0 ) %]
77             [% FOREACH adjustment IN adjustments %]
78                 <tr>
79                     <td></td>
80                     <td colspan="6">Adjustment cost for invoice
81                         <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% adjustment.invoiceid | uri %]">
82                             [% adjustment.invoice.invoicenumber | html %]
83                         </a>
84                     </td>
85                     <td class="data total">[% adjustment.adjustment | $Price %]</td>
86                 </tr>
87             [% END %]
89     [% END %]
90     <tr>
91         <td> Total </td>
92         <td> </td>
93         <td> </td>
94         <td> </td>
95         <td> </td>
96         <td> </td>
97         <td> </td>
98         <td class="data">
99             [% total | $Price %]
100         </td>
101     </tr>
102     </tfoot>
104 </table>
106 </main>
107 </div> <!-- /.col-sm-10.col-sm-push-2 -->
109 <div class="col-sm-2 col-sm-pull-10">
110     <aside>
111         [% INCLUDE 'acquisitions-menu.inc' %]
112     </aside>
113 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
114 </div> <!-- /.row -->
116 [% MACRO jsinclude BLOCK %]
117     [% Asset.js("js/acquisitions-menu.js") | $raw %]
118     [% INCLUDE 'datatables.inc' %]
119     <script>
120         $(document).ready(function() {
121             $("#spent").dataTable($.extend(true, {}, dataTablesDefaults, {
122                 "aoColumnDefs": [
123                     { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
124                     { "sType": "title-string", "aTargets" : [ "title-string" ] }
125                 ],
126                 "sPaginationType": "full"
127             }));
128         });
129     </script>
130 [% END %]
132 [% INCLUDE 'intranet-bottom.inc' %]