Fixed some tests.

This commit is contained in:
James Cole
2015-06-29 07:59:06 +02:00
parent 0c6dd5cd16
commit bf2a104a4e
4 changed files with 77 additions and 6 deletions

View File

@@ -159,12 +159,12 @@ class TransactionJournal extends Model
}
}
if ($this->tag_count === 1) {
if (intval($this->tag_count) === 1) {
// get amount for single tag:
$amount = $this->amountByTag($this->tags()->first(), $amount);
}
if ($this->tag_count > 1) {
if (intval($this->tag_count) > 1) {
// get amount for either tag.
$amount = $this->amountByTags($amount);