Skip to content

Commit

Permalink
fix(cash): make registry order by date
Browse files Browse the repository at this point in the history
This commit fixes the date ordering for the cash registry.  It fixes the
problem reported in #123.
  • Loading branch information
Jonathan Niles authored and jniles committed Jan 12, 2017
1 parent c70ff0b commit f0956d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/controllers/finance/cash.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ function listPayment(params) {
sql += ' 1 ';
}

sql += ' ORDER BY cash.date DESC ';

// finally, apply the LIMIT query
if (!isNaN(limit)) {
sql += ' LIMIT ?;';
Expand Down

0 comments on commit f0956d6

Please sign in to comment.