Skip to content

Commit

Permalink
Fix default order for bank entry list
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jul 18, 2018
1 parent 33d67ea commit bef777e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions htdocs/compta/bank/bankentries_list.php
Expand Up @@ -103,7 +103,7 @@
$offset = $limit * $page;
$pageprev = $page - 1;
$pagenext = $page + 1;
if (! $sortorder) $sortorder='ASC';
if (! $sortorder) $sortorder='desc,desc,desc';
if (! $sortfield) $sortfield='b.datev,b.dateo,b.rowid';

$mode_balance_ok=false;
Expand All @@ -113,7 +113,6 @@
$sortfield = 'b.datev,b.dateo,b.rowid';
if ($id > 0 || ! empty($ref) || $search_account > 0) $mode_balance_ok = true;
}
if (strtolower($sortorder) == 'desc') $mode_balance_ok = false;

$object = new Account($db);
if ($id > 0 || ! empty($ref))
Expand Down

0 comments on commit bef777e

Please sign in to comment.