2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Acquisitions › Late orders</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
6 [% INCLUDE 'calendar.inc' %]
7 <script type="text/javascript">
9 $(document).ready(function() {
10 $("input:checkbox[name=claim_for]").click(function(){
11 var booksellerid = $(this).attr('booksellerid');
12 if ( $("input:checkbox[name=claim_for]:checked").length > 0) {
13 $("input:checkbox[name=claim_for][booksellerid!="+booksellerid+"]").attr('disabled', true);
15 $("input:checkbox[name=claim_for]").attr('disabled', false);
18 $('#CheckAll').click(function(){ $("#late_orders td").checkCheckboxes();});
19 $('#CheckNone').click(function(){ $("#late_orders td").unCheckCheckboxes();});
24 <body id="acq_lateorders" class="acq">
25 [% INCLUDE 'header.inc' %]
26 [% INCLUDE 'acquisitions-search.inc' %]
28 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › <a href="lateorders.pl">Late orders</a></div>
30 <div id="doc3" class="yui-t2">
36 <h1>[% IF ( Supplier ) %][% Supplier %] : [% END %]Late orders</h1>
37 <div id="acqui_lateorders">
40 [% IF ( error_claim == "no_email" ) %]
41 <div class="error">This vendor has no email</div>
43 <div class="error">[% error_claim %]</div>
47 <div class="dialog message">Email has been sent.</div>
49 [% IF ( lateorders ) %]
50 <form action="lateorders.pl" name="claim" method="post">
51 <input type="hidden" name="op" value="send_alert" />
52 <input type="hidden" name="delay" value="[% delay %]" />
53 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
55 <p><label for="letter_code">Claim using notice: </label><select name="letter_code" id="letter_code">
56 [% FOREACH letter IN letters %]
57 <option value="[% letter.code %]">[% letter.name %]</option>
62 <table id="late_orders">
65 <th>Estimated delivery date</th>
73 <th><a id="CheckAll" href="#">Check all</a><br /><a id="CheckNone" href="#">Uncheck all</a></th>
78 [% FOREACH lateorder IN lateorders %]
79 [% UNLESS ( loop.odd ) %]<tr class="highlight">
80 [% ELSE %]<tr>[% END %]
82 ([% lateorder.supplierid %])
83 [% lateorder.orderdate %]
84 ([% lateorder.latesince %] days)
87 [% IF ( lateorder.estimateddeliverydate ) %]
88 [% lateorder.estimateddeliverydate | $KohaDates %]
92 [% lateorder.supplier %]
95 <b>[% lateorder.title |html %]</b>
96 [% IF ( lateorder.author ) %]<br/><i>Author:</i> [% lateorder.author %][% END %]
97 [% IF ( lateorder.publisher ) %]
98 <br/><i>Published by:</i> [% lateorder.publisher %]
99 [% IF ( lateorder.publicationyear ) %]
100 <i> in </i>[% lateorder.publicationyear %]
105 [% lateorder.unitpricesupplier %]x[% lateorder.quantity %] =
106 [% lateorder.subtotal %]
107 <p title="budget">[% lateorder.budget %]</p>
110 <p><a href="basket.pl?basketno=[% lateorder.basketno %]" title="basket">
111 [% lateorder.basketno %]
114 <p title="branch">[% lateorder.branch %]</p>
116 <td>[% lateorder.claims_count %]</td>
117 <td>[% lateorder.claimed_date %]</td>
119 [% UNLESS lateorder.budget_lock %]
120 <input type="checkbox" class="checkbox" name="claim_for" value="[% lateorder.ordernumber %]" booksellerid="[% lateorder.supplierid %]"/>
128 <th colspan="3"> </th>
134 <input type="submit" value="Claim Order" />
139 [% ELSE %]<p>There are no late orders.</p>
145 <form action="lateorders.pl" method="get">
146 <fieldset class="brief">
147 <h4>Filter Results:</h4>
148 [% FOREACH ERROR_LOO IN ERROR_LOOP %]
149 [% 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 %]
152 <li><label for="delay">Order date:</label><input size="3" maxlength="3" id="delay" type="text" name="delay" value="[% delay %]" /> days ago</li>
153 <li><label for="delay">Estimated Delivery date from: </label>
154 <input type="text" size="10" id="estimateddeliverydatefrom" name="estimateddeliverydatefrom" value="[% estimateddeliverydatefrom %]" />
155 <img src="[% themelang %]/lib/calendar/cal.gif" id="openCalendarFrom" style="cursor: pointer;" alt="Show Calendar" />
156 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
158 <li><label for="delay">To: </label>
159 <input type="text" size="10" id="estimateddeliverydateto" name="estimateddeliverydateto" value="[% estimateddeliverydateto %]" />
160 <img src="[% themelang %]/lib/calendar/cal.gif" id="openCalendarTo" style="cursor: pointer;" alt="Show Calendar" />
161 <script type="text/javascript">
162 // return true if the date is blocked.
163 function disable_from(date) {var limit = get_Calendar_limit(date,'estimateddeliverydatefrom'); return (limit && limit < date);}
164 function disable_to(date) {var limit = get_Calendar_limit(date,'estimateddeliverydateto'); return (limit && limit < date);}
166 inputField : "estimateddeliverydatefrom",
167 ifFormat : "[% DHTMLcalendar_dateformat %]",
168 button : "openCalendarFrom",
169 disableFunc : disable_from,
170 dateStatusFunc : disable_from
173 inputField : "estimateddeliverydateto",
174 ifFormat : "[% DHTMLcalendar_dateformat %]",
175 button : "openCalendarTo",
176 disableFunc : disable_to,
177 dateStatusFunc : disable_to
180 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
183 <li><label for="booksellerid">Vendor:</label>
184 <select id="booksellerid" size="1" tabindex="" name="booksellerid">
186 [% FOREACH SUPPLIER_LOO IN SUPPLIER_LOOP %]
187 [% IF ( SUPPLIER_LOO.selected ) %]<option value="[% SUPPLIER_LOO.id %]" selected="selected">[% SUPPLIER_LOO.name %]</option>
188 [% ELSE %]<option value="[% SUPPLIER_LOO.id %]">[% SUPPLIER_LOO.name %]</option>[% END %]
192 <fieldset class="action"><input type="submit" value="filter" /></fieldset>
195 [% INCLUDE 'acquisitions-menu.inc' %]
198 [% INCLUDE 'intranet-bottom.inc' %]