Bug 14687: Patron's transaction history changes items' order after paying fines.

Sorts Patron's accounting data consistently from newest to oldest.
It doesn't depend on anymore to timestamp (which can be same for multiple
entries) from database but instead uses accountline's id to sort.

Signed-off-by: Liz Rea <liz@catalyst.net.nz>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Joonas Kylmälä 2015-08-17 12:40:05 +00:00 committed by Tomas Cohen Arazi
parent 384dceeef5
commit 307fe0ac53

View file

@ -1170,7 +1170,7 @@ sub GetMemberAccountRecords {
SELECT *
FROM accountlines
WHERE borrowernumber=?);
$strsth.=" ORDER BY date desc,timestamp DESC";
$strsth.=" ORDER BY accountlines_id desc";
my $sth= $dbh->prepare( $strsth );
$sth->execute( $borrowernumber );