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