From: Joe Hunt Date: Thu, 22 Nov 2018 09:28:06 +0000 (+0100) Subject: Fixed Customer Balance Showing wrong Outstanding balance (Journal Entry allocation... X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=6c8d7acf89e69a5b09b32dfbbe8fdeb9716fc1e3;p=fa-stable.git Fixed Customer Balance Showing wrong Outstanding balance (Journal Entry allocation), @kvvaradha. --- diff --git a/reporting/rep101.php b/reporting/rep101.php index 34c975ea..b9c3ad08 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_SALESINVOICE || $trans['type'] == ST_BANKPAYMENT) + if ($trans['type'] == ST_JOURNAL || $trans['type'] == ST_SALESINVOICE || $trans['type'] == ST_BANKPAYMENT) $item[3] = $item[0] - $item[2]; else $item[3] = -$item[1] - $item[2];