Large commit to get rid of a lot of static methods.

This commit is contained in:
James Cole
2017-03-04 07:26:03 +01:00
parent d9aa074330
commit 45f4395f26
10 changed files with 11 additions and 11 deletions

View File

@@ -141,7 +141,7 @@ class StoredJournalEventHandler
private function getExactAmount(TransactionJournal $journal, PiggyBank $piggyBank, PiggyBankRepetition $repetition): string
{
$amount = $journal->amountPositive();
$sources = TransactionJournal::sourceAccountList($journal)->pluck('id')->toArray();
$sources = $journal->sourceAccountList()->pluck('id')->toArray();
$room = bcsub(strval($piggyBank->targetamount), strval($repetition->currentamount));
$compare = bcmul($repetition->currentamount, '-1');