From 6cdf5e7b364034c94751f31ba47af750c2eedc61 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Sun, 14 Jun 2020 10:08:14 +0200 Subject: [PATCH] Rerun Optimizing rep107.php. --- reporting/rep107.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- 2.30.2