Fix amount in box.

This commit is contained in:
James Cole 2015-09-28 21:45:11 +02:00
parent 46aa7f81b2
commit dac6efd98b

View File

@ -219,6 +219,7 @@ class JsonController extends Controller
}
$amount = $reportQuery->expenseInPeriodCorrected($start, $end, true)->sum('amount');
$amount = $amount * -1;
$data = ['box' => 'out', 'amount' => Amount::format($amount, false), 'amount_raw' => $amount];
$cache->store($data);