Merge remote-tracking branch 'kc/new/bug_5616' into kcmaster
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / lateorders.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Acquisitions &rsaquo; Late orders</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 </head>
5 <body>
6 [% INCLUDE 'header.inc' %]
7 [% INCLUDE 'acquisitions-search.inc' %]
8
9 <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>
10
11 <div id="doc3" class="yui-t2">
12    
13    <div id="bd">
14         <div id="yui-main">
15         <div class="yui-b">
16         
17 <h1>[% IF ( Supplier ) %][% Supplier %] : [% END %]Late orders</h1>
18 <div id="acqui_lateorders">
19
20 [% IF ( lateorders ) %]
21 <form action="lateorders.pl" name="claim" method="post">
22   <input type="hidden" name="op" value="send_alert" />
23         [% IF ( letters ) %]
24         <p><label for="letter_code">Claim using notice: </label><select name="letter_code" id="letter_code">
25           [% FOREACH letter IN letters %]
26                 <option value="[% letter.code %]">[% letter.name %]</option>
27           [% END %]
28           </select>
29         </p>
30         [% END %]
31     <table>
32         <tr>
33             <th>Order Date</th>
34             <th>Vendor</th>
35             <th>Information</th>
36             <th>Total cost</th>
37             <th>Basket</th>
38             <th>&nbsp;</th>
39         </tr>
40     [% FOREACH lateorder IN lateorders %]
41         [% UNLESS ( loop.odd ) %]<tr class="highlight">
42         [% ELSE %]<tr>[% END %]
43             <td>
44                 [% lateorder.orderdate %]
45                 ([% lateorder.latesince %] days)
46             </td>
47             <td>
48                 [% lateorder.supplier %]
49             </td>
50             <td>
51                 <b>[% lateorder.title |html %]</b>
52                    [% IF ( lateorder.author ) %]<br/><i>Author:</i> [% lateorder.author %][% END %]
53                    [% IF ( lateorder.publisher ) %]
54                         <br/><i>Published by:</i> [% lateorder.publisher %]
55                         [% IF ( lateorder.publicationyear ) %]
56                             <i> in </i>[% lateorder.publicationyear %]
57                         [% END %]
58                    [% END %]
59             </td>
60             <td>
61                    [% lateorder.unitpricesupplier %]x[% lateorder.quantity %] = 
62                    [% lateorder.subtotal %]
63                     <p title="budget">[% lateorder.budget %]</p>
64             </td>
65             <td>
66                  <p><a href="basket.pl?basketno=[% lateorder.basketno %]" title="basket">
67                         [% lateorder.basketno %]
68                         </a>
69                  </p>
70                  <p title="branch">[% lateorder.branch %]</p>
71             </td>
72             <td>
73                 <input type="checkbox" name="claim_for" value="[% lateorder.ordernumber %]" />
74             </td>
75         </tr>
76         [% END %]
77         <tr> 
78             <th>Total</th>
79             <th colspan="2">&nbsp;</th>
80             <th>[% total %]</th>
81             <th>&nbsp;</th>
82             <td>
83                 <input type="submit" value="Claim Order" />
84             </td>
85         </tr>
86     </table>
87      </form>
88 [% ELSE %]<p>There are no late orders.</p>
89 [% END %]
90 </div>
91 </div>
92 </div>
93 <div class="yui-b">
94 <form action="lateorders.pl" method="get">
95 <fieldset class="brief">
96 <h4>Filter Results:</h4>
97 [% FOREACH ERROR_LOO IN ERROR_LOOP %]
98 [% 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 %]
99 [% END %]
100 <ol><li><label for="delay">Order date:</label><input size="3" maxlength="3" id="delay" type="text" name="delay" value="[% delay %]" /> days ago</li>
101         <li><label for="supplierid">Vendor:</label>
102                 <select id="supplierid" size="1" tabindex="" name="supplierid">
103                         <option value=""/>
104                         [% FOREACH SUPPLIER_LOO IN SUPPLIER_LOOP %]
105                 [% IF ( SUPPLIER_LOO.selected ) %]<option value="[% SUPPLIER_LOO.id %]" selected="selected">[% SUPPLIER_LOO.name %]</option>
106                 [% ELSE %]<option value="[% SUPPLIER_LOO.id %]">[% SUPPLIER_LOO.name %]</option>[% END %]
107                 [% END %]
108                 </select>
109 </ol>
110         <fieldset class="action"><input type="submit" value="filter" /></fieldset>
111 </fieldset>
112     </form>
113 [% INCLUDE 'acquisitions-menu.inc' %]
114 </div>
115 </div>
116 [% INCLUDE 'intranet-bottom.inc' %]