Bug 19338: Fix sorting by dates in opac-account.tt

To test:
Find an account with lots of fines/payments
load up the borrower's account in the OPAC
note that the sort on the dates sorts by day, and not by date.
apply this patch
reload the page, note that the sort on the dates is now correct.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Alex Arnaud <alex.arnaud@biblibre.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit a0072fa491)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Liz Rea 2017-09-19 15:29:22 +12:00 committed by Fridolin Somers
parent 30c465aa15
commit a4e5026036
1 changed files with 7 additions and 3 deletions

View File

@ -71,7 +71,7 @@
<thead>
<tr>
[% IF ENABLE_OPAC_PAYMENTS %]<th>&nbsp;</th>[% END %]
<th>Date</th>
<th class="title-string">Date</th>
<th>Description</th>
<th>Fine amount</th>
<th>Amount outstanding</th>
@ -102,7 +102,7 @@
[% END %]
</td>
[% END %]
<td>[% ACCOUNT_LINE.date | $KohaDates %]</td>
<td><span title="[% ACCOUNT_LINE.date %]">[% ACCOUNT_LINE.date | $KohaDates %]</span></td>
<td>
[% SWITCH ACCOUNT_LINE.accounttype %]
[% CASE 'Pay' %]Payment, thanks
@ -181,7 +181,11 @@
<script type="text/javascript">
$( document ).ready(function() {
$("#finestable").dataTable($.extend(true, {}, dataTablesDefaults ));
$("#finestable").dataTable($.extend(true, {}, dataTablesDefaults, {
"aoColumnDefs": [
{ "sType": "title-string", "aTargets" : [ "title-string" ] }
]
} ));
$(".paypal").on("click", function() {
window.open('https://www.paypal.com/webapps/mpp/paypal-popup','WIPaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=1060, height=700');