Removed amount_positive. This breaks the other half.

This commit is contained in:
James Cole
2016-03-02 11:53:23 +01:00
parent fa47eac9ff
commit 056c809754

View File

@@ -97,22 +97,6 @@ class TransactionJournal extends Model
return $this->belongsToMany('FireflyIII\Models\Category');
}
/**
* @return string
*/
public function getAmountPositiveAttribute()
{
$amount = '0';
/** @var Transaction $t */
foreach ($this->transactions as $t) {
if ($t->amount > 0) {
$amount = $t->amount;
}
}
return $amount;
}
/**
* @codeCoverageIgnore
*