]> git.koha-community.org Git - koha.git/blob - koha-tmpl/intranet-tmpl/prog/en/modules/acqui/ordered.tt
Bug 10090: display item type description instead of code on acq ordered and spent...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / ordered.tt
1 [% USE KohaDates %]
2 [% USE ItemTypes %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha &rsaquo; Acquisitions &rsaquo; Ordered</title>
5 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
6 [% INCLUDE 'doc-head-close.inc' %]
7 [% INCLUDE 'datatables.inc' %]
8 <script type="text/javascript">
9 //<![CDATA[
10 [% IF (dateformat == 'metric') %]
11     dt_add_type_uk_date();
12 [% END %]
13  $(document).ready(function() {
14     var spent = $("#spent").dataTable($.extend(true, {}, dataTablesDefaults, {
15         "sPaginationType": "four_button"
16     } ) );
17  });
18  //]]>
19 </script>
20 </head>
21 <body id="acq_ordered" class="acq">
22 [% INCLUDE 'header.inc' %]
23 [% INCLUDE 'acquisitions-search.inc' %]
24
25 <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 %]</div>
26
27 <div id="doc3" class="yui-t2">
28
29 <div id="bd">
30     <div id="yui-main">
31         <div class="yui-b">
32
33 <h1>Fund: [% fund_code %]</h1>
34 <h2>Ordered</h2>
35
36 <table cellspacing="0" cellpadding="0" border="0" id="spent" class="collapse">
37     <thead>
38     <tr>
39         <th> Title </th>
40         <th> Order </th>
41         <th> Vendor </th>
42         <th> Itemtype </th>
43     <th> Left on order </th>
44         <th> Estimated cost per unit </th>
45     <th> Date ordered </th>
46         <th> Subtotal </th>
47     </tr>
48     </thead>
49     <tbody>
50 [% FOREACH order IN ordered %]
51     [% IF loop.odd %]
52         <tr class="highlight">
53     [% ELSE %]
54         <tr>
55     [% END %]
56         <td class="cell">
57             [% order.title %]
58         </td>
59         <td class="cell">
60         [% IF ( CAN_user_acquisition_order_manage ) %]
61             <a href="/cgi-bin/koha/acqui/neworderempty.pl?ordernumber=[% order.ordernumber %]&amp;booksellerid=[% order.booksellerid %]&amp;basketno=[% order.basketno %]">[% order.ordernumber %]</a>
62         [% ELSE %]
63             [% order.ordernumber %]
64         [% END %]
65         </td>
66         <td class="cell">
67             <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% order.booksellerid %]">[% order.booksellerid %]</a>
68         </td>
69         <td class="cell">
70         [% ItemTypes.GetDescription( order.itype ) %]
71         </td>
72         <td class="cell">
73             [% order.left %]
74         </td>
75         <td class="cell" align="right">
76             [% order.ecost %]
77         </td>
78         <td class="cell" align="right">
79             [% order.entrydate | $KohaDates %]
80         </td>
81         <td class="cell" align="right">
82             [% order.subtotal %]
83         </td>
84     </tr>
85 [% END %]
86     </tbody>
87     <tfoot>
88     <tr>
89         <td> Total </td>
90         <td> </td>
91         <td> </td>
92         <td> </td>
93         <td> </td>
94         <td> </td>
95         <td> </td>
96         <td align="right">
97             [% total %]
98         </td>
99     </tr>
100     </tfoot>
101
102 </table>
103
104 </div>
105 </div>
106 <div class="yui-b">
107 [% INCLUDE 'acquisitions-menu.inc' %]
108 </div>
109 </div>
110 [% INCLUDE 'intranet-bottom.inc' %]