Small updates to icons and code.

This commit is contained in:
James Cole
2015-03-07 12:34:03 +01:00
parent 081ff3ff55
commit c3990ac32f
3 changed files with 8 additions and 7 deletions

View File

@@ -69,7 +69,7 @@ class JsonController extends Controller
// paid a bill in this range?
$count = $bill->transactionjournals()->before($range['end'])->after($range['start'])->count();
if ($count == 0) {
$amount += ($bill->amount_max + $bill->amount_min / 2);
$amount += floatval($bill->amount_max + $bill->amount_min / 2);
}
@@ -104,7 +104,7 @@ class JsonController extends Controller
}
}
return Response::json(['box' => $box, 'amount' => Amount::format($amount, false)]);
return Response::json(['box' => $box, 'amount' => Amount::format($amount, false),'amount_raw' => $amount]);
}
/**