Bug 10023: Change degree notation for number to No.
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / lateorders.tt
1 [% USE KohaDates %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha &rsaquo; Acquisitions &rsaquo; Late orders</title>
4 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
5 [% INCLUDE 'doc-head-close.inc' %]
6 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
7 [% INCLUDE 'datatables-strings.inc' %]
8 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
9 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
10 [% INCLUDE 'calendar.inc' %]
11 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
12 <script type="text/javascript">
13 //<![CDATA[
14 [% IF (dateformat == 'metric') %]
15     dt_add_type_uk_date();
16 [% END %]
17 $(document).ready(function() {
18     var late_orderst = $("#late_orders").dataTable($.extend(true, {}, dataTablesDefaults, {
19         "aoColumnDefs": [
20             { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
21         ],
22         "sPaginationType": "four_button"
23     } ) );
24
25     $("input:checkbox[name=claim_for]").click(function(){
26         var booksellerid = $(this).attr('booksellerid');
27         if ( $("input:checkbox[name=claim_for]:checked").length > 0) {
28             $("input:checkbox[name=claim_for][booksellerid!="+booksellerid+"]").attr('disabled', true);
29         } else {
30             $("input:checkbox[name=claim_for]").attr('disabled', false);
31         }
32     });
33     $('#CheckAll').click(function(){ $("#late_orders td").checkCheckboxes();});
34     $('#CheckNone').click(function(){ $("#late_orders td").unCheckCheckboxes();});
35 });
36 //]]>
37 </script>
38 </head>
39 <body id="acq_lateorders" class="acq">
40 [% INCLUDE 'header.inc' %]
41 [% INCLUDE 'acquisitions-search.inc' %]
42
43 <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; <a href="lateorders.pl">Late orders</a></div>
44
45 <div id="doc3" class="yui-t2">
46    
47    <div id="bd">
48         <div id="yui-main">
49         <div class="yui-b">
50         
51 <h1>[% IF ( Supplier ) %][% Supplier %] : [% END %]Late orders</h1>
52 <div id="acqui_lateorders">
53
54 [% IF error_claim %]
55     [% IF ( error_claim == "no_email" ) %]
56         <div class="error">This vendor has no email</div>
57     [% ELSE %]
58         <div class="error">[% error_claim %]</div>
59     [% END %]
60 [% END %]
61 [% IF info_claim %]
62     <div class="dialog message">Email has been sent.</div>
63 [% END %]
64 [% IF ( lateorders ) %]
65 <form action="lateorders.pl" name="claim" method="post">
66   <input type="hidden" name="op" value="send_alert" />
67   <input type="hidden" name="delay" value="[% delay %]" />
68   <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
69         [% IF ( letters ) %]
70         <p><label for="letter_code">Claim using notice: </label><select name="letter_code" id="letter_code">
71           [% FOREACH letter IN letters %]
72                 <option value="[% letter.code %]">[% letter.name %]</option>
73           [% END %]
74           </select>
75         </p>
76         [% END %]
77     <table id="late_orders">
78         <thead>
79         <tr>
80             <th>Order date</th>
81             <th>Estimated delivery date</th>
82             <th>Vendor</th>
83             <th>Information</th>
84             <th>Total cost</th>
85             <th>Basket</th>
86             <th>Claims count</th>
87             <th>Claimed date</th>
88             [% IF Supplier %]
89                 <th><a id="CheckAll" href="#">Check all</a><br /><a id="CheckNone" href="#">Uncheck all</a></th>
90             [% ELSE %]
91                 <th></th>
92             [% END %]
93         </tr>
94         </thead>
95         <tbody>
96     [% FOREACH lateorder IN lateorders %]
97         [% UNLESS ( loop.odd ) %]<tr class="highlight">
98         [% ELSE %]<tr>[% END %]
99             <td>
100                 ([% lateorder.supplierid %])
101                 [% lateorder.orderdate %]
102                 ([% lateorder.latesince %] days)
103             </td>
104             <td>
105                 [% IF ( lateorder.estimateddeliverydate ) %]
106                     [% lateorder.estimateddeliverydate | $KohaDates  %]
107                 [% END %]
108             </td>
109             <td>
110                 [% lateorder.supplier %]
111             </td>
112             <td>
113                 <b>[% lateorder.title |html %]</b>
114                    [% IF ( lateorder.author ) %]<br/><i>Author:</i> [% lateorder.author %][% END %]
115                    [% IF ( lateorder.publisher ) %]
116                         <br/><i>Published by:</i> [% lateorder.publisher %]
117                         [% IF ( lateorder.publicationyear ) %]
118                             <i> in </i>[% lateorder.publicationyear %]
119                         [% END %]
120                    [% END %]
121             </td>
122             <td>
123                    [% lateorder.unitpricesupplier %]x[% lateorder.quantity %] = 
124                    [% lateorder.subtotal %]
125                     <p title="budget">[% lateorder.budget %]</p>
126             </td>
127             <td>
128                  <p><a href="basket.pl?basketno=[% lateorder.basketno %]" title="basket">
129                         [% lateorder.basketno %]
130                         </a>
131                  </p>
132                  <p title="branch">[% lateorder.branch %]</p>
133             </td>
134             <td>[% lateorder.claims_count %]</td>
135             <td>[% lateorder.claimed_date %]</td>
136             <td>
137                 [% UNLESS lateorder.budget_lock %]
138                     <input type="checkbox" class="checkbox" name="claim_for" value="[% lateorder.ordernumber %]"  booksellerid="[% lateorder.supplierid %]"/>
139                 [% END %]
140              </td>
141             </td>
142         </tr>
143         [% END %]
144     </tbody>
145     <tfoot>
146         <tr> 
147             <th>Total</th>
148             <th>&nbsp;</th>
149             <th>&nbsp;</th>
150             <th>&nbsp;</th>
151             <th>[% total %]</th>
152             <th>&nbsp;</th>
153             <th>&nbsp;</th>
154             <th>&nbsp;</th>
155             <td>
156                 <input type="submit" value="Claim Order" />
157             </td>
158         </tr>
159     </tfoot>
160     </table>
161 </form>
162 [% ELSE %]<p>There are no late orders.</p>
163 [% END %]
164 </div>
165 </div>
166 </div>
167 <div class="yui-b">
168 <form action="lateorders.pl" method="get">
169 <fieldset class="brief">
170 <h4>Filter Results:</h4>
171 [% FOREACH ERROR_LOO IN ERROR_LOOP %]
172 [% IF ( ERROR_LOO.delay_digits ) %]<p class="error">The number of days ([% ERROR_LOO.bad_delay %]) must be a number between 0 and 999.</p>[% END %]
173 [% END %]
174 <ol>
175     <li><label for="delay">Order date:</label><input size="3" maxlength="3" id="delay" type="text" name="delay" value="[% delay %]" /> days ago</li>
176     <li><label for="from">Estimated delivery date from: </label>
177         <input type="text" size="10" id="from" name="estimateddeliverydatefrom" value="[% estimateddeliverydatefrom %]" class="datepickerfrom" />
178         <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
179     </li>
180     <li><label for="to">To: </label>
181         <input type="text" size="10" id="to" name="estimateddeliverydateto" value="[% estimateddeliverydateto %]" class="datepickerto" />
182         <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
183     </li>
184
185         <li><label for="booksellerid">Vendor:</label>
186                 <select id="booksellerid" size="1" tabindex="" name="booksellerid">
187                         <option value=""/>
188                         [% FOREACH SUPPLIER_LOO IN SUPPLIER_LOOP %]
189                 [% IF ( SUPPLIER_LOO.selected ) %]<option value="[% SUPPLIER_LOO.id %]" selected="selected">[% SUPPLIER_LOO.name %]</option>
190                 [% ELSE %]<option value="[% SUPPLIER_LOO.id %]">[% SUPPLIER_LOO.name %]</option>[% END %]
191                 [% END %]
192                 </select>
193 </ol>
194         <fieldset class="action"><input type="submit" value="filter" /></fieldset>
195 </fieldset>
196     </form>
197 [% INCLUDE 'acquisitions-menu.inc' %]
198 </div>
199 </div>
200 [% INCLUDE 'intranet-bottom.inc' %]