From 3750a00b5f199cb043692d2c00ef9bd12b36cf45 Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 30 Sep 2015 19:43:02 +0200 Subject: [PATCH] Fix amount, make it positive. --- app/Generator/Chart/Bill/ChartJsBillChartGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Generator/Chart/Bill/ChartJsBillChartGenerator.php b/app/Generator/Chart/Bill/ChartJsBillChartGenerator.php index a193cbd0cf..b04d4f8db6 100644 --- a/app/Generator/Chart/Bill/ChartJsBillChartGenerator.php +++ b/app/Generator/Chart/Bill/ChartJsBillChartGenerator.php @@ -33,7 +33,7 @@ class ChartJsBillChartGenerator implements BillChartGenerator /** @var TransactionJournal $entry */ foreach ($paid as $entry) { // loop paid and create single entry: $paidDescriptions[] = $entry->description; - $paidAmount = bcadd($paidAmount, $entry->amount); + $paidAmount = bcadd($paidAmount, $entry->amount_positive); } /** @var Bill $entry */ foreach ($unpaid as $entry) { // loop unpaid: