X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=reporting%2Frep101.php;h=7b8e8f20ecdc70029112e3d0008f88f42c686310;hb=4f3183fb40d1107e2bffd0f18ebbca33965bb9e9;hp=634b2d69bf78c1f1c926c3ba50a416671be05c01;hpb=ae754adc5705dd91c813eb43e93ecef81fdc6745;p=fa-stable.git 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']);