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 $(document).ready(function() {
15 var late_orderst = $("#late_orders").dataTable($.extend(true, {}, dataTablesDefaults, {
17 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
19 "sPaginationType": "four_button"
22 $("input:checkbox[name=claim_for]").click(function(){
23 var booksellerid = $(this).attr('booksellerid');
24 if ( $("input:checkbox[name=claim_for]:checked").length > 0) {
25 $("input:checkbox[name=claim_for][booksellerid!="+booksellerid+"]").attr('disabled', true);
27 $("input:checkbox[name=claim_for]").attr('disabled', false);
30 $('#CheckAll').click(function(){ $("#late_orders td").checkCheckboxes();});
31 $('#CheckNone').click(function(){ $("#late_orders td").unCheckCheckboxes();});
36 <body id="acq_lateorders" class="acq">
37 [% INCLUDE 'header.inc' %]
38 [% INCLUDE 'acquisitions-search.inc' %]
40 <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>
42 <div id="doc3" class="yui-t2">
48 <h1>[% IF ( Supplier ) %][% Supplier %] : [% END %]Late orders</h1>
49 <div id="acqui_lateorders">
52 [% IF ( error_claim == "no_email" ) %]
53 <div class="error">This vendor has no email</div>
55 <div class="error">[% error_claim %]</div>
59 <div class="dialog message">Email has been sent.</div>
61 [% IF ( lateorders ) %]
62 <form action="lateorders.pl" name="claim" method="post">
63 <input type="hidden" name="op" value="send_alert" />
64 <input type="hidden" name="delay" value="[% delay %]" />
65 <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
67 <p><label for="letter_code">Claim using notice: </label><select name="letter_code" id="letter_code">
68 [% FOREACH letter IN letters %]
69 <option value="[% letter.code %]">[% letter.name %]</option>
74 <table id="late_orders">
78 <th>Estimated delivery date</th>
86 <th><a id="CheckAll" href="#">Check all</a><br /><a id="CheckNone" href="#">Uncheck all</a></th>
93 [% FOREACH lateorder IN lateorders %]
94 [% UNLESS ( loop.odd ) %]<tr class="highlight">
95 [% ELSE %]<tr>[% END %]
97 ([% lateorder.supplierid %])
98 [% lateorder.orderdate %]
99 ([% lateorder.latesince %] days)
102 [% IF ( lateorder.estimateddeliverydate ) %]
103 [% lateorder.estimateddeliverydate | $KohaDates %]
107 [% lateorder.supplier %]
110 <b>[% lateorder.title |html %]</b>
111 [% IF ( lateorder.author ) %]<br/><i>Author:</i> [% lateorder.author %][% END %]
112 [% IF ( lateorder.publisher ) %]
113 <br/><i>Published by:</i> [% lateorder.publisher %]
114 [% IF ( lateorder.publicationyear ) %]
115 <i> in </i>[% lateorder.publicationyear %]
120 [% lateorder.unitpricesupplier %]x[% lateorder.quantity %] =
121 [% lateorder.subtotal %]
122 <p title="budget">[% lateorder.budget %]</p>
125 <p><a href="basket.pl?basketno=[% lateorder.basketno %]" title="basket">
126 [% lateorder.basketno %]
129 <p title="branch">[% lateorder.branch %]</p>
131 <td>[% lateorder.claims_count %]</td>
132 <td>[% lateorder.claimed_date %]</td>
134 [% UNLESS lateorder.budget_lock %]
135 <input type="checkbox" class="checkbox" name="claim_for" value="[% lateorder.ordernumber %]" booksellerid="[% lateorder.supplierid %]"/>
153 <input type="submit" value="Claim Order" />
159 [% ELSE %]<p>There are no late orders.</p>
165 <form action="lateorders.pl" method="get">
166 <fieldset class="brief">
167 <h4>Filter Results:</h4>
168 [% FOREACH ERROR_LOO IN ERROR_LOOP %]
169 [% 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 %]
172 <li><label for="delay">Order date:</label><input size="3" maxlength="3" id="delay" type="text" name="delay" value="[% delay %]" /> days ago</li>
173 <li><label for="from">Estimated delivery date from: </label>
174 <input type="text" size="10" id="from" name="estimateddeliverydatefrom" value="[% estimateddeliverydatefrom %]" class="datepickerfrom" />
175 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
177 <li><label for="to">To: </label>
178 <input type="text" size="10" id="to" name="estimateddeliverydateto" value="[% estimateddeliverydateto %]" class="datepickerto" />
179 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
182 <li><label for="booksellerid">Vendor:</label>
183 <select id="booksellerid" size="1" tabindex="" name="booksellerid">
185 [% FOREACH SUPPLIER_LOO IN SUPPLIER_LOOP %]
186 [% IF ( SUPPLIER_LOO.selected ) %]<option value="[% SUPPLIER_LOO.id %]" selected="selected">[% SUPPLIER_LOO.name %]</option>
187 [% ELSE %]<option value="[% SUPPLIER_LOO.id %]">[% SUPPLIER_LOO.name %]</option>[% END %]
191 <fieldset class="action"><input type="submit" value="filter" /></fieldset>
194 [% INCLUDE 'acquisitions-menu.inc' %]
197 [% INCLUDE 'intranet-bottom.inc' %]