From: Joe Hunt Date: Tue, 29 Nov 2016 15:19:27 +0000 (+0100) Subject: Fixed A Bug in Item Sales Summary Report X-Git-Tag: 2.3-final~15 X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=a9922b1495a13b95c3fbba2c5f7c221cef5445f8 Fixed A Bug in Item Sales Summary Report --- diff --git a/reporting/rep309.php b/reporting/rep309.php index 1bb9ba06..17203424 100644 --- a/reporting/rep309.php +++ b/reporting/rep309.php @@ -50,7 +50,7 @@ function getTransactions($category, $from, $to) AND trans.tran_date>='$from' AND trans.tran_date<='$to' AND line.quantity<>0 - AND line.debtor_trans_type = ".ST_SALESINVOICE; + AND (line.debtor_trans_type = ".ST_SALESINVOICE." OR line.debtor_trans_type = ".ST_CUSTCREDIT.")"; if ($category != 0) $sql .= " AND item.category_id = ".db_escape($category); $sql .= " GROUP BY item.category_id,