mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-27 01:11:37 -06:00
Do not over / undercorrect
This commit is contained in:
parent
b1af6bab28
commit
f0316f09ed
@ -51,9 +51,6 @@ class UpdateJournalConnection
|
|||||||
$diff = $amount - $event->amount;
|
$diff = $amount - $event->amount;
|
||||||
|
|
||||||
$repetition->currentamount += $diff;
|
$repetition->currentamount += $diff;
|
||||||
if($repetition->currentamount < 0) {
|
|
||||||
$repetition->currentamount = 0;
|
|
||||||
}
|
|
||||||
$repetition->save();
|
$repetition->save();
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user