Fix default order for bank entry list
This commit is contained in:
parent
33d67ea332
commit
bef777e19d
@ -103,7 +103,7 @@ if (empty($page) || $page == -1) { $page = 0; } // If $page is not defined,
|
|||||||
$offset = $limit * $page;
|
$offset = $limit * $page;
|
||||||
$pageprev = $page - 1;
|
$pageprev = $page - 1;
|
||||||
$pagenext = $page + 1;
|
$pagenext = $page + 1;
|
||||||
if (! $sortorder) $sortorder='ASC';
|
if (! $sortorder) $sortorder='desc,desc,desc';
|
||||||
if (! $sortfield) $sortfield='b.datev,b.dateo,b.rowid';
|
if (! $sortfield) $sortfield='b.datev,b.dateo,b.rowid';
|
||||||
|
|
||||||
$mode_balance_ok=false;
|
$mode_balance_ok=false;
|
||||||
@ -113,7 +113,6 @@ if (($sortfield == 'b.datev' || $sortfield == 'b.datev,b.dateo,b.rowid'))
|
|||||||
$sortfield = 'b.datev,b.dateo,b.rowid';
|
$sortfield = 'b.datev,b.dateo,b.rowid';
|
||||||
if ($id > 0 || ! empty($ref) || $search_account > 0) $mode_balance_ok = true;
|
if ($id > 0 || ! empty($ref) || $search_account > 0) $mode_balance_ok = true;
|
||||||
}
|
}
|
||||||
if (strtolower($sortorder) == 'desc') $mode_balance_ok = false;
|
|
||||||
|
|
||||||
$object = new Account($db);
|
$object = new Account($db);
|
||||||
if ($id > 0 || ! empty($ref))
|
if ($id > 0 || ! empty($ref))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user