Bug 14687: Patron's transaction history changes items' order after paying fines.
authorJoonas Kylmälä <j.kylmala@gmail.com>
Mon, 17 Aug 2015 12:40:05 +0000 (12:40 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 9 Nov 2015 15:07:28 +0000 (12:07 -0300)
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>
C4/Members.pm

index 9166b75..5f71e89 100644 (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 );