mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-04 19:53:44 +00:00
Fixed typecast
This commit is contained in:
@@ -211,8 +211,8 @@ class IndexController extends Controller
|
|||||||
'monthly' => '12',
|
'monthly' => '12',
|
||||||
'weekly' => '52.17',
|
'weekly' => '52.17',
|
||||||
];
|
];
|
||||||
$yearAmount = bcmul($avg, bcdiv($multiplies[$bill['repeat_freq']], ''.($bill['skip'] + 1)));
|
$yearAmount = bcmul($avg, bcdiv($multiplies[$bill['repeat_freq']], (string)($bill['skip'] + 1)));
|
||||||
Log::debug(sprintf('Amount per year is %s (%s * %s / %s)', $yearAmount, $avg, $multiplies[$bill['repeat_freq']], ''.($bill['skip'] + 1)));
|
Log::debug(sprintf('Amount per year is %s (%s * %s / %s)', $yearAmount, $avg, $multiplies[$bill['repeat_freq']], (string)($bill['skip'] + 1)));
|
||||||
|
|
||||||
// per period:
|
// per period:
|
||||||
$division = [
|
$division = [
|
||||||
|
Reference in New Issue
Block a user