Remove deprecated methods.

This commit is contained in:
James Cole
2016-05-20 08:11:54 +02:00
parent 70d936bb8f
commit 782a6f289c
2 changed files with 2 additions and 104 deletions

View File

@@ -44,7 +44,8 @@ class ConnectJournalToPiggyBank
$amount = TransactionJournal::amountPositive($journal);
// if piggy account matches source account, the amount is positive
if ($piggyBank->account_id == TransactionJournal::sourceAccount($journal)->id) {
$sources = TransactionJournal::sourceAccountList($journal)->pluck('id')->toArray();
if (in_array($piggyBank->account_id, $sources)) {
$amount = bcmul($amount, '-1');
}