mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-23 09:26:29 -06:00
Add some floatvals() just in case.
This commit is contained in:
parent
d8976379b1
commit
cd44f51072
@ -55,8 +55,8 @@ class RepeatedExpenseController extends BaseController
|
||||
|
||||
// number of bars:
|
||||
$piggyBank->barCount = floor(12 / $piggyBank->parts);
|
||||
$amountPerBar = $piggyBank->targetamount / $piggyBank->parts;
|
||||
$currentAmount = $amountPerBar;
|
||||
$amountPerBar = floatval($piggyBank->targetamount) / $piggyBank->parts;
|
||||
$currentAmount = floatval($amountPerBar);
|
||||
$bars = [];
|
||||
$currentDate = clone $piggyBank->currentRep->startdate;
|
||||
for ($i = 0; $i < $piggyBank->parts; $i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user