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>
(cherry picked from commit 307fe0ac53)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
This commit is contained in:
parent
868bdc355d
commit
eea56d4124
|
|
@ -1168,7 +1168,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 );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue