Added some (yet without function) information icons. [skip ci] [skip Scrutinizer]

This commit is contained in:
James Cole
2016-02-06 20:17:55 +01:00
parent 6c2df1a783
commit 8fb3348a7c
8 changed files with 58 additions and 32 deletions

View File

@@ -80,11 +80,13 @@ class ReportHelper implements ReportHelperInterface
$entry = $journals->filter(
function (TransactionJournal $journal) use ($bill) {
return $journal->bill_id == $bill->id;
return $journal->bill_id === $bill->id;
}
);
if (!is_null($entry->first())) {
$billLine->setAmount($entry->first()->journalAmount);
$first = $entry->first();
if (!is_null($first)) {
$billLine->setTransactionJournalId($first->id);
$billLine->setAmount($first->journalAmount);
$billLine->setHit(true);
} else {
$billLine->setHit(false);
@@ -93,7 +95,6 @@ class ReportHelper implements ReportHelperInterface
$collection->addBill($billLine);
}
}
return $collection;