From 556e9f1df7161db2e2020f9bcdecdb0b2b94134c Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 2 Mar 2016 11:56:47 +0100 Subject: [PATCH] Removed "source_account" attribute. --- app/Models/TransactionJournal.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/app/Models/TransactionJournal.php b/app/Models/TransactionJournal.php index 762db8eafb..60da811fe3 100644 --- a/app/Models/TransactionJournal.php +++ b/app/Models/TransactionJournal.php @@ -112,7 +112,7 @@ class TransactionJournal extends Model return $value; } - + /** * * @param string $fieldName @@ -130,16 +130,6 @@ class TransactionJournal extends Model return ''; } - /** - * @return Account - */ - public function getSourceAccountAttribute() - { - $account = $this->transactions()->where('amount', '<', 0)->first()->account; - - return $account; - } - /** * @return string */