mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-01 18:42:01 +00:00
Fix #9861
This commit is contained in:
@@ -233,8 +233,8 @@ trait ModifiesPiggyBanks
|
|||||||
$difference = bcsub($piggyBank->target_amount, $currentAmount);
|
$difference = bcsub($piggyBank->target_amount, $currentAmount);
|
||||||
|
|
||||||
// an amount will be removed, create "negative" event:
|
// an amount will be removed, create "negative" event:
|
||||||
Log::debug(sprintf('ChangedAmount: is triggered with difference "%s"', $difference));
|
// Log::debug(sprintf('ChangedAmount: is triggered with difference "%s"', $difference));
|
||||||
event(new ChangedAmount($piggyBank, $difference, null, null));
|
// event(new ChangedAmount($piggyBank, $difference, null, null));
|
||||||
|
|
||||||
// question is, from which account(s) to remove the difference?
|
// question is, from which account(s) to remove the difference?
|
||||||
// solution: just start from the top until there is no more money left to remove.
|
// solution: just start from the top until there is no more money left to remove.
|
||||||
|
|||||||
Reference in New Issue
Block a user