From: Joe Hunt Date: Tue, 29 Aug 2017 15:01:23 +0000 (+0200) Subject: Fixed Logical Bug in Customer Balances Report. X-Git-Tag: v2.4.3~52 X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=0f166221e63d742558a4c6b382b5d9be274c5ff9 Fixed Logical Bug in Customer Balances Report. --- diff --git a/reporting/rep101.php b/reporting/rep101.php index 634b2d69..7b8e8f20 100644 --- a/reporting/rep101.php +++ b/reporting/rep101.php @@ -203,7 +203,13 @@ function print_customer_balances() } while ($trans = db_fetch($res)) { - if ($no_zeros && floatcmp($trans['TotalAmount'], $trans['Allocated']) == 0) continue; + if ($no_zeros) { + if ($show_balance) { + if ($trans['TotalAmount'] == 0) continue; + } else { + if (floatcmp($trans['TotalAmount'], $trans['Allocated']) == 0) continue; + } + } $rep->NewLine(1, 2); $rep->TextCol(0, 1, $systypes_array[$trans['type']]); $rep->TextCol(1, 2, $trans['reference']);