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