X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep101.php;h=900678ad7a9f6d62ad358c51a58bd43502ee0c3e;hb=ec98559a543b666f4824149e8522d0aa65818936;hp=dc81dd5a4e4590ffcabe5ca6e24974032e42821b;hpb=27361234b9405d19fe1a12fcf4048f29335125fb;p=fa-stable.git diff --git a/reporting/rep101.php b/reporting/rep101.php index dc81dd5a..900678ad 100644 --- a/reporting/rep101.php +++ b/reporting/rep101.php @@ -239,7 +239,7 @@ function print_customer_balances() $item[2] = round2($trans['Allocated'] * $rate, $dec) * -1; } $rep->AmountCol(6, 7, $item[2], $dec); - if ($trans['type'] == ST_JOURNAL || $trans['type'] == ST_SALESINVOICE || $trans['type'] == ST_BANKPAYMENT) + if (($trans['type'] == ST_JOURNAL && $item[0]) || $trans['type'] == ST_SALESINVOICE || $trans['type'] == ST_BANKPAYMENT) $item[3] = $item[0] - $item[2]; else $item[3] = -$item[1] - $item[2];