From 9d000c18987a6fc1ce0e6336d68c0a1dfc48430f Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 3 Apr 2015 23:05:50 +0200 Subject: [PATCH] Added amount because debug. --- app/Http/Controllers/GoogleChartController.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/GoogleChartController.php b/app/Http/Controllers/GoogleChartController.php index b939f396bc..cee4d60b8e 100644 --- a/app/Http/Controllers/GoogleChartController.php +++ b/app/Http/Controllers/GoogleChartController.php @@ -1,5 +1,6 @@ name . ' (expected on the ' . $date->format('jS') . ')'; + $unpaid['items'][] = $creditCard->name . ' (expected ' . Amount::format(($balance * -1), false) . ') on the ' . $date->format('jS') . ')'; } if ($balance == 0) { // find a transfer TO the credit card which should account for @@ -390,7 +391,9 @@ class GoogleChartController extends Controller $journal = $transaction->transactionJournal; if ($journal->transactionType->type == 'Transfer') { $paid['amount'] += floatval($transaction->amount); - $paid['items'][] = $creditCard->name . ' (paid on the ' . $journal->date->format('jS') . ')'; + $paid['items'][] = $creditCard->name . + ' (paid ' . Amount::format((floatval($transaction->amount)), false) . + ' on the ' . $journal->date->format('jS') . ')'; } } }