mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Unify piggy bank events. Does not save a link to the journal (yet)
This commit is contained in:
@@ -152,7 +152,6 @@ class UpdatePiggybank implements ActionInterface
|
||||
Log::debug(sprintf('Will now remove %s from piggy bank.', $amount));
|
||||
|
||||
$repository->removeAmount($piggyBank, $amount);
|
||||
$repository->createEventWithJournal($piggyBank, app('steam')->negative($amount), $journal);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -191,6 +190,5 @@ class UpdatePiggybank implements ActionInterface
|
||||
Log::debug(sprintf('Will now add %s to piggy bank.', $amount));
|
||||
|
||||
$repository->addAmount($piggyBank, $amount);
|
||||
$repository->createEventWithJournal($piggyBank, app('steam')->positive($amount), $journal);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user