mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-28 03:34:32 -06:00
Added amount because debug.
This commit is contained in:
parent
b2254875b2
commit
9d000c1898
@ -1,5 +1,6 @@
|
|||||||
<?php namespace FireflyIII\Http\Controllers;
|
<?php namespace FireflyIII\Http\Controllers;
|
||||||
|
|
||||||
|
use Amount;
|
||||||
use App;
|
use App;
|
||||||
use Auth;
|
use Auth;
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
@ -376,7 +377,7 @@ class GoogleChartController extends Controller
|
|||||||
if ($balance < 0) {
|
if ($balance < 0) {
|
||||||
// unpaid!
|
// unpaid!
|
||||||
$unpaid['amount'] += $balance * -1;
|
$unpaid['amount'] += $balance * -1;
|
||||||
$unpaid['items'][] = $creditCard->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) {
|
if ($balance == 0) {
|
||||||
// find a transfer TO the credit card which should account for
|
// find a transfer TO the credit card which should account for
|
||||||
@ -390,7 +391,9 @@ class GoogleChartController extends Controller
|
|||||||
$journal = $transaction->transactionJournal;
|
$journal = $transaction->transactionJournal;
|
||||||
if ($journal->transactionType->type == 'Transfer') {
|
if ($journal->transactionType->type == 'Transfer') {
|
||||||
$paid['amount'] += floatval($transaction->amount);
|
$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') . ')';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user