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