2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Acquisitions › 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">
13 $(document).ready(function() {
14 var late_orderst = $("#late_orders").dataTable($.extend(true, {}, dataTablesDefaults, {
16 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
18 "sPaginationType": "four_button"
21 $("input:checkbox[name=claim_for]").click(function(){
22 var booksellerid = $(this).attr('booksellerid');
23 if ( $("input:checkbox[name=claim_for]:checked").length > 0) {
24 $("input:checkbox[name=claim_for][booksellerid!="+booksellerid+"]").attr('disabled', true);
26 $("input:checkbox[name=claim_for]").attr('disabled', false);
29 $('#CheckAll').click(function(){ $("#late_orders td").checkCheckboxes();});
30 $('#CheckNone').click(function(){ $("#late_orders td").unCheckCheckboxes();});
35 <body id="acq_lateorders" class="acq">
36 [% INCLUDE 'header.inc' %]
37 [% INCLUDE 'acquisitions-search.inc' %]
39 <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>
41 <div id="doc3" class="yui-t2">
47 <h1>[% IF ( Supplier ) %][% Supplier %] : [% END %]Late orders</h1>
48 <div id="acqui_lateorders">
51 [% IF ( error_claim == "no_email" ) %]
52 <div class="error">This vendor has no email</div>
54 <div class="error">[% error_claim %]</div>
58 <div class="dialog message">Email has been sent.</div>
60 [% IF ( lateorders ) %]
61 <form action="lateorders.pl" name="claim" method="post">
62 <input type="hidden" name="op" value="send_alert" />
63 <input type="hidden" name="delay" value="[% delay %]" />
64 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
66 <p><label for="letter_code">Claim using notice: </label><select name="letter_code" id="letter_code">
67 [% FOREACH letter IN letters %]
68 <option value="[% letter.code %]">[% letter.name %]</option>
73 <table id="late_orders">
77 <th>Estimated delivery date</th>
85 <th><a id="CheckAll" href="#">Check all</a><br /><a id="CheckNone" href="#">Uncheck all</a></th>
92 [% FOREACH lateorder IN lateorders %]
93 [% UNLESS ( loop.odd ) %]<tr class="highlight">
94 [% ELSE %]<tr>[% END %]
96 ([% lateorder.supplierid %])
97 [% lateorder.orderdate %]
98 ([% lateorder.latesince %] days)
101 [% IF ( lateorder.estimateddeliverydate ) %]
102 [% lateorder.estimateddeliverydate | $KohaDates %]
106 [% lateorder.supplier %]
109 <b>[% lateorder.title |html %]</b>
110 [% IF ( lateorder.author ) %]<br/><i>Author:</i> [% lateorder.author %][% END %]
111 [% IF ( lateorder.publisher ) %]
112 <br/><i>Published by:</i> [% lateorder.publisher %]
113 [% IF ( lateorder.publicationyear ) %]
114 <i> in </i>[% lateorder.publicationyear %]
119 [% lateorder.unitpricesupplier %]x[% lateorder.quantity %] =
120 [% lateorder.subtotal %]
121 <p title="budget">[% lateorder.budget %]</p>
124 <p><a href="basket.pl?basketno=[% lateorder.basketno %]" title="basket">
125 [% lateorder.basketno %]
128 <p title="branch">[% lateorder.branch %]</p>
130 <td>[% lateorder.claims_count %]</td>
131 <td>[% lateorder.claimed_date %]</td>
133 [% UNLESS lateorder.budget_lock %]
134 <input type="checkbox" class="checkbox" name="claim_for" value="[% lateorder.ordernumber %]" booksellerid="[% lateorder.supplierid %]"/>
152 <input type="submit" value="Claim Order" />
158 [% ELSE %]<p>There are no late orders.</p>
164 <form action="lateorders.pl" method="get">
165 <fieldset class="brief">
166 <h4>Filter Results:</h4>
167 [% FOREACH ERROR_LOO IN ERROR_LOOP %]
168 [% 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 %]
171 <li><label for="delay">Order date:</label><input size="3" maxlength="3" id="delay" type="text" name="delay" value="[% delay %]" /> days ago</li>
172 <li><label for="delay">Estimated Delivery date from: </label>
173 <input type="text" size="10" id="estimateddeliverydatefrom" name="estimateddeliverydatefrom" value="[% estimateddeliverydatefrom %]" />
174 <img src="[% themelang %]/lib/calendar/cal.gif" id="openCalendarFrom" style="cursor: pointer;" alt="Show Calendar" />
175 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
177 <li><label for="delay">To: </label>
178 <input type="text" size="10" id="estimateddeliverydateto" name="estimateddeliverydateto" value="[% estimateddeliverydateto %]" />
179 <img src="[% themelang %]/lib/calendar/cal.gif" id="openCalendarTo" style="cursor: pointer;" alt="Show Calendar" />
180 <script type="text/javascript">
181 // return true if the date is blocked.
182 function disable_from(date) {var limit = get_Calendar_limit(date,'estimateddeliverydatefrom'); return (limit && limit < date);}
183 function disable_to(date) {var limit = get_Calendar_limit(date,'estimateddeliverydateto'); return (limit && limit < date);}
185 inputField : "estimateddeliverydatefrom",
186 ifFormat : "[% DHTMLcalendar_dateformat %]",
187 button : "openCalendarFrom",
188 disableFunc : disable_from,
189 dateStatusFunc : disable_from
192 inputField : "estimateddeliverydateto",
193 ifFormat : "[% DHTMLcalendar_dateformat %]",
194 button : "openCalendarTo",
195 disableFunc : disable_to,
196 dateStatusFunc : disable_to
199 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
202 <li><label for="booksellerid">Vendor:</label>
203 <select id="booksellerid" size="1" tabindex="" name="booksellerid">
205 [% FOREACH SUPPLIER_LOO IN SUPPLIER_LOOP %]
206 [% IF ( SUPPLIER_LOO.selected ) %]<option value="[% SUPPLIER_LOO.id %]" selected="selected">[% SUPPLIER_LOO.name %]</option>
207 [% ELSE %]<option value="[% SUPPLIER_LOO.id %]">[% SUPPLIER_LOO.name %]</option>[% END %]
211 <fieldset class="action"><input type="submit" value="filter" /></fieldset>
214 [% INCLUDE 'acquisitions-menu.inc' %]
217 [% INCLUDE 'intranet-bottom.inc' %]