Add budget keyword.

This commit is contained in:
James Cole
2017-02-19 07:41:12 +01:00
parent 1f6180ce5d
commit a27b686446
2 changed files with 28 additions and 2 deletions

View File

@@ -193,8 +193,10 @@ class Search implements SearchInterface
/** @var JournalCollectorInterface $collector */
$collector = app(JournalCollectorInterface::class);
$collector->setUser($this->user);
$collector->setAllAssetAccounts()->setLimit($pageSize)->setPage($page)
->withOpposingAccount()->withCategoryInformation();
$collector->setAllAssetAccounts()->setLimit($pageSize)->setPage($page);
if($this->hasModifiers()) {
$collector->withOpposingAccount()->withCategoryInformation()->withBudgetInformation();
}
$set = $collector->getPaginatedJournals()->getCollection();
$words = $this->words;