From: Joe Hunt Date: Sat, 13 Jan 2018 13:14:24 +0000 (+0100) Subject: Fixed printing sequences of Sales Invoices. X-Git-Tag: v2.4.4~27 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=8333e3e6b2b09fb6d72d3605275a8212bd71de84;p=fa-stable.git Fixed printing sequences of Sales Invoices. --- diff --git a/reporting/rep107.php b/reporting/rep107.php index 7982f8a1..580e3abe 100644 --- a/reporting/rep107.php +++ b/reporting/rep107.php @@ -36,8 +36,7 @@ function get_invoice_range($from, $to) LEFT JOIN ".TB_PREF."voided voided ON trans.type=voided.type AND trans.trans_no=voided.id WHERE trans.type=".ST_SALESINVOICE ." AND ISNULL(voided.id)" - ." AND trans.reference>=".db_escape(get_reference(ST_SALESINVOICE, $from)) - ." AND trans.reference<=".db_escape(get_reference(ST_SALESINVOICE, $to)) + ." AND trans.trans_no BETWEEN ".db_escape($from)." AND ".db_escape($to) ." ORDER BY trans.tran_date, trans.$ref"; return db_query($sql, "Cant retrieve invoice range");