Commit 1bd81387 authored by Karamel's avatar Karamel
Browse files

Workaround for Z tickets report when cash session is duplicated.

parent 3cd345e8
......@@ -44,7 +44,7 @@ $sqls[] = "SELECT "
. "AND CLOSEDCASH.DATESTART <= :stop "
. "GROUP BY CLOSEDCASH.MONEY, CASHREGISTERS.NAME, HOSTSEQUENCE, "
. "DATESTART, DATEEND, OPENCASH, CLOSECASH "
. "ORDER BY CLOSEDCASH.DATESTART DESC";
. "ORDER BY CLOSEDCASH.DATESTART DESC, CLOSEDCASH.MONEY DESC";
// Payments request
$sqls[] = "SELECT "
......@@ -57,7 +57,7 @@ $sqls[] = "SELECT "
. "WHERE CLOSEDCASH.DATESTART > :start "
. "AND CLOSEDCASH.DATESTART <= :stop "
. "GROUP BY CLOSEDCASH.MONEY, __KEY__ "
. "ORDER BY CLOSEDCASH.DATESTART DESC";
. "ORDER BY CLOSEDCASH.DATESTART DESC, CLOSEDCASH.MONEY";
// Taxes request
$sqls[] = "SELECT "
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment