Some translations and cleanup [skip ci]

This commit is contained in:
James Cole
2015-05-24 15:13:07 +02:00
parent 61930b5b51
commit 7193a77840
7 changed files with 27 additions and 13 deletions

View File

@@ -122,11 +122,6 @@ class JsonController extends Controller
$start = Session::get('start', Carbon::now()->startOfMonth());
$end = Session::get('end', Carbon::now()->endOfMonth());
$amount = $reportQuery->incomeInPeriodCorrected($start, $end, true)->sum('amount');
// $amount = 0;
// foreach($set as $entry) {
// //echo $entry->description.' ('.$entry->tags->count().'): ' . $entry->amount."\n";
// $amount += $entry->amount;
// }
return Response::json(['box' => 'in', 'amount' => Amount::format($amount, false), 'amount_raw' => $amount]);
}