From 6c8d7acf89e69a5b09b32dfbbe8fdeb9716fc1e3 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Thu, 22 Nov 2018 10:28:06 +0100 Subject: [PATCH] Fixed Customer Balance Showing wrong Outstanding balance (Journal Entry allocation), @kvvaradha. --- reporting/rep101.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.30.2