mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-25 05:03:13 +00:00
Restore old behavior
This commit is contained in:
@@ -248,7 +248,7 @@ class PiggyBankTransformer extends AbstractTransformer
|
||||
if (bccomp($currentAmount, $targetAmount) < 1) {
|
||||
$now = today(config('app.timezone'));
|
||||
$startDate = null !== $startDate && $startDate->gte($now) ? $startDate : $now;
|
||||
$diffInMonths = $startDate->diffInMonths($targetDate, false);
|
||||
$diffInMonths = (int) $startDate->diffInMonths($targetDate);
|
||||
$remainingAmount = bcsub($targetAmount, $currentAmount);
|
||||
|
||||
// more than 1 month to go and still need money to save:
|
||||
|
||||
Reference in New Issue
Block a user