From: Joe Hunt Date: Sun, 14 Jun 2020 08:08:14 +0000 (+0200) Subject: Rerun Optimizing rep107.php. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=6cdf5e7b364034c94751f31ba47af750c2eedc61;p=fa-stable.git Rerun Optimizing rep107.php. --- diff --git a/reporting/rep107.php b/reporting/rep107.php index 83476d21..501cf44c 100644 --- a/reporting/rep107.php +++ b/reporting/rep107.php @@ -47,7 +47,7 @@ function get_invoice_range($from, $to, $currency=false) ." AND trans.trans_no BETWEEN ".db_escape($from)." AND ".db_escape($to); if ($currency !== false) - " AND cust.curr_code=".db_escape($currency); + $sql .= " AND cust.curr_code=".db_escape($currency); $sql .= " ORDER BY trans.tran_date, trans.$ref";