From 03b71c21bc7a86f331989e1f917c95e8f396d2d4 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Tue, 13 Mar 2012 09:18:41 +0100 Subject: [PATCH] Bug. WHERE clause version=1 in rep304.php should be skipped. --- reporting/rep304.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reporting/rep304.php b/reporting/rep304.php index 7a91a4a..054a12d 100644 --- a/reporting/rep304.php +++ b/reporting/rep304.php @@ -56,7 +56,7 @@ function getTransactions($category, $location, $fromcust, $from, $to) AND ".TB_PREF."stock_moves.trans_no=".TB_PREF."debtor_trans.trans_no AND ".TB_PREF."stock_moves.tran_date>='$from' AND ".TB_PREF."stock_moves.tran_date<='$to' - AND ((".TB_PREF."debtor_trans.type=".ST_CUSTDELIVERY." AND ".TB_PREF."debtor_trans.version=1) OR ".TB_PREF."stock_moves.type=".ST_CUSTCREDIT.") + AND (".TB_PREF."debtor_trans.type=".ST_CUSTDELIVERY." OR ".TB_PREF."stock_moves.type=".ST_CUSTCREDIT.") AND (".TB_PREF."stock_master.mb_flag='B' OR ".TB_PREF."stock_master.mb_flag='M')"; if ($category != 0) $sql .= " AND ".TB_PREF."stock_master.category_id = ".db_escape($category); -- 2.30.2