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" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
12 <script type="text/javascript">
14 [% IF (dateformat == 'metric') %]
15 dt_add_type_uk_date();
17 $(document).ready(function() {
18 var late_orderst = $("#late_orders").dataTable($.extend(true, {}, dataTablesDefaults, {
20 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
22 "sPaginationType": "four_button"
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);
30 $("input:checkbox[name=claim_for]").attr('disabled', false);
33 $('#CheckAll').click(function(){ $("#late_orders td").checkCheckboxes();});
34 $('#CheckNone').click(function(){ $("#late_orders td").unCheckCheckboxes();});
39 <body id="acq_lateorders" class="acq">
40 [% INCLUDE 'header.inc' %]
41 [% INCLUDE 'acquisitions-search.inc' %]
43 <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>
45 <div id="doc3" class="yui-t2">
51 <h1>[% IF ( Supplier ) %][% Supplier %] : [% END %]Late orders</h1>
52 <div id="acqui_lateorders">
55 [% IF ( error_claim == "no_email" ) %]
56 <div class="error">This vendor has no email</div>
58 <div class="error">[% error_claim %]</div>
62 <div class="dialog message">Email has been sent.</div>
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 %]" />
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>
77 <table id="late_orders">
81 <th>Estimated delivery date</th>
89 <th><a id="CheckAll" href="#">Check all</a><br /><a id="CheckNone" href="#">Uncheck all</a></th>
96 [% FOREACH lateorder IN lateorders %]
97 [% UNLESS ( loop.odd ) %]<tr class="highlight">
98 [% ELSE %]<tr>[% END %]
100 ([% lateorder.supplierid %])
101 [% lateorder.orderdate %]
102 ([% lateorder.latesince %] days)
105 [% IF ( lateorder.estimateddeliverydate ) %]
106 [% lateorder.estimateddeliverydate | $KohaDates %]
110 [% lateorder.supplier %]
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 %]
123 [% lateorder.unitpricesupplier %]x[% lateorder.quantity %] =
124 [% lateorder.subtotal %]
125 <p title="budget">[% lateorder.budget %]</p>
128 <p><a href="basket.pl?basketno=[% lateorder.basketno %]" title="basket">
129 [% lateorder.basketno %]
132 <p title="branch">[% lateorder.branch %]</p>
134 <td>[% lateorder.claims_count %]</td>
135 <td>[% lateorder.claimed_date %]</td>
137 [% UNLESS lateorder.budget_lock %]
138 <input type="checkbox" class="checkbox" name="claim_for" value="[% lateorder.ordernumber %]" booksellerid="[% lateorder.supplierid %]"/>
156 <input type="submit" value="Claim Order" />
162 [% ELSE %]<p>There are no late orders.</p>
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 %]
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>
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>
185 <li><label for="booksellerid">Vendor:</label>
186 <select id="booksellerid" size="1" tabindex="" name="booksellerid">
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 %]
194 <fieldset class="action"><input type="submit" value="filter" /></fieldset>
197 [% INCLUDE 'acquisitions-menu.inc' %]
200 [% INCLUDE 'intranet-bottom.inc' %]