Owen Leonard
4c23d24f40
This patch adds the JS required to enable correct sorting of dates in DD/MM/YYYY format to pages which require it. To test, set your dateformat accordingly and confirm on the affected pages that dates are sorted correctly. Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Resolved conflict in serials/serials-search.tt. Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
200 lines
7.6 KiB
Text
200 lines
7.6 KiB
Text
[% USE KohaDates %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Acquisitions › Late orders</title>
|
|
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
|
|
[% INCLUDE 'datatables-strings.inc' %]
|
|
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
|
|
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
|
|
[% INCLUDE 'calendar.inc' %]
|
|
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
[% IF (dateformat == 'metric') %]
|
|
dt_add_type_uk_date();
|
|
[% END %]
|
|
$(document).ready(function() {
|
|
var late_orderst = $("#late_orders").dataTable($.extend(true, {}, dataTablesDefaults, {
|
|
"aoColumnDefs": [
|
|
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
|
|
],
|
|
"sPaginationType": "four_button"
|
|
} ) );
|
|
|
|
$("input:checkbox[name=claim_for]").click(function(){
|
|
var booksellerid = $(this).attr('booksellerid');
|
|
if ( $("input:checkbox[name=claim_for]:checked").length > 0) {
|
|
$("input:checkbox[name=claim_for][booksellerid!="+booksellerid+"]").attr('disabled', true);
|
|
} else {
|
|
$("input:checkbox[name=claim_for]").attr('disabled', false);
|
|
}
|
|
});
|
|
$('#CheckAll').click(function(){ $("#late_orders td").checkCheckboxes();});
|
|
$('#CheckNone').click(function(){ $("#late_orders td").unCheckCheckboxes();});
|
|
});
|
|
//]]>
|
|
</script>
|
|
</head>
|
|
<body id="acq_lateorders" class="acq">
|
|
[% INCLUDE 'header.inc' %]
|
|
[% INCLUDE 'acquisitions-search.inc' %]
|
|
|
|
<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>
|
|
|
|
<div id="doc3" class="yui-t2">
|
|
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
|
|
<h1>[% IF ( Supplier ) %][% Supplier %] : [% END %]Late orders</h1>
|
|
<div id="acqui_lateorders">
|
|
|
|
[% IF error_claim %]
|
|
[% IF ( error_claim == "no_email" ) %]
|
|
<div class="error">This vendor has no email</div>
|
|
[% ELSE %]
|
|
<div class="error">[% error_claim %]</div>
|
|
[% END %]
|
|
[% END %]
|
|
[% IF info_claim %]
|
|
<div class="dialog message">Email has been sent.</div>
|
|
[% END %]
|
|
[% IF ( lateorders ) %]
|
|
<form action="lateorders.pl" name="claim" method="post">
|
|
<input type="hidden" name="op" value="send_alert" />
|
|
<input type="hidden" name="delay" value="[% delay %]" />
|
|
<input type="hidden" name="booksellerid" value="[% booksellerid %]" />
|
|
[% IF ( letters ) %]
|
|
<p><label for="letter_code">Claim using notice: </label><select name="letter_code" id="letter_code">
|
|
[% FOREACH letter IN letters %]
|
|
<option value="[% letter.code %]">[% letter.name %]</option>
|
|
[% END %]
|
|
</select>
|
|
</p>
|
|
[% END %]
|
|
<table id="late_orders">
|
|
<thead>
|
|
<tr>
|
|
<th>Order date</th>
|
|
<th>Estimated delivery date</th>
|
|
<th>Vendor</th>
|
|
<th>Information</th>
|
|
<th>Total cost</th>
|
|
<th>Basket</th>
|
|
<th>Claims count</th>
|
|
<th>Claimed date</th>
|
|
[% IF Supplier %]
|
|
<th><a id="CheckAll" href="#">Check all</a><br /><a id="CheckNone" href="#">Uncheck all</a></th>
|
|
[% ELSE %]
|
|
<th></th>
|
|
[% END %]
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
[% FOREACH lateorder IN lateorders %]
|
|
[% UNLESS ( loop.odd ) %]<tr class="highlight">
|
|
[% ELSE %]<tr>[% END %]
|
|
<td>
|
|
([% lateorder.supplierid %])
|
|
[% lateorder.orderdate %]
|
|
([% lateorder.latesince %] days)
|
|
</td>
|
|
<td>
|
|
[% IF ( lateorder.estimateddeliverydate ) %]
|
|
[% lateorder.estimateddeliverydate | $KohaDates %]
|
|
[% END %]
|
|
</td>
|
|
<td>
|
|
[% lateorder.supplier %]
|
|
</td>
|
|
<td>
|
|
<b>[% lateorder.title |html %]</b>
|
|
[% IF ( lateorder.author ) %]<br/><i>Author:</i> [% lateorder.author %][% END %]
|
|
[% IF ( lateorder.publisher ) %]
|
|
<br/><i>Published by:</i> [% lateorder.publisher %]
|
|
[% IF ( lateorder.publicationyear ) %]
|
|
<i> in </i>[% lateorder.publicationyear %]
|
|
[% END %]
|
|
[% END %]
|
|
</td>
|
|
<td>
|
|
[% lateorder.unitpricesupplier %]x[% lateorder.quantity %] =
|
|
[% lateorder.subtotal %]
|
|
<p title="budget">[% lateorder.budget %]</p>
|
|
</td>
|
|
<td>
|
|
<p><a href="basket.pl?basketno=[% lateorder.basketno %]" title="basket">
|
|
[% lateorder.basketno %]
|
|
</a>
|
|
</p>
|
|
<p title="branch">[% lateorder.branch %]</p>
|
|
</td>
|
|
<td>[% lateorder.claims_count %]</td>
|
|
<td>[% lateorder.claimed_date %]</td>
|
|
<td>
|
|
[% UNLESS lateorder.budget_lock %]
|
|
<input type="checkbox" class="checkbox" name="claim_for" value="[% lateorder.ordernumber %]" booksellerid="[% lateorder.supplierid %]"/>
|
|
[% END %]
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
[% END %]
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<th>Total</th>
|
|
<th> </th>
|
|
<th> </th>
|
|
<th> </th>
|
|
<th>[% total %]</th>
|
|
<th> </th>
|
|
<th> </th>
|
|
<th> </th>
|
|
<td>
|
|
<input type="submit" value="Claim Order" />
|
|
</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</form>
|
|
[% ELSE %]<p>There are no late orders.</p>
|
|
[% END %]
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="yui-b">
|
|
<form action="lateorders.pl" method="get">
|
|
<fieldset class="brief">
|
|
<h4>Filter Results:</h4>
|
|
[% FOREACH ERROR_LOO IN ERROR_LOOP %]
|
|
[% 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 %]
|
|
[% END %]
|
|
<ol>
|
|
<li><label for="delay">Order date:</label><input size="3" maxlength="3" id="delay" type="text" name="delay" value="[% delay %]" /> days ago</li>
|
|
<li><label for="from">Estimated delivery date from: </label>
|
|
<input type="text" size="10" id="from" name="estimateddeliverydatefrom" value="[% estimateddeliverydatefrom %]" class="datepickerfrom" />
|
|
<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
|
|
</li>
|
|
<li><label for="to">To: </label>
|
|
<input type="text" size="10" id="to" name="estimateddeliverydateto" value="[% estimateddeliverydateto %]" class="datepickerto" />
|
|
<div class="hint">[% INCLUDE 'date-format.inc' %]</div>
|
|
</li>
|
|
|
|
<li><label for="booksellerid">Vendor:</label>
|
|
<select id="booksellerid" size="1" tabindex="" name="booksellerid">
|
|
<option value=""/>
|
|
[% FOREACH SUPPLIER_LOO IN SUPPLIER_LOOP %]
|
|
[% IF ( SUPPLIER_LOO.selected ) %]<option value="[% SUPPLIER_LOO.id %]" selected="selected">[% SUPPLIER_LOO.name %]</option>
|
|
[% ELSE %]<option value="[% SUPPLIER_LOO.id %]">[% SUPPLIER_LOO.name %]</option>[% END %]
|
|
[% END %]
|
|
</select>
|
|
</ol>
|
|
<fieldset class="action"><input type="submit" value="filter" /></fieldset>
|
|
</fieldset>
|
|
</form>
|
|
[% INCLUDE 'acquisitions-menu.inc' %]
|
|
</div>
|
|
</div>
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|