This commit is contained in:
James Cole 2018-01-17 09:22:45 +01:00
parent 493543c1f5
commit ccf1a6c182
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
2 changed files with 5 additions and 5 deletions

View File

@ -136,7 +136,7 @@ class PopupReport implements PopupReportInterface
/** @var JournalCollectorInterface $collector */
$collector = app(JournalCollectorInterface::class);
$collector->setAccounts($attributes['accounts'])->setTypes([TransactionType::WITHDRAWAL, TransactionType::TRANSFER])
->setRange($attributes['startDate'], $attributes['endDate'])
->setRange($attributes['startDate'], $attributes['endDate'])->withOpposingAccount()
->setCategory($category);
$journals = $collector->getJournals();

View File

@ -59,16 +59,16 @@ class ReportController extends Controller
parent::__construct();
$this->middleware(
function ($request, $next) {
// @var AccountRepositoryInterface $repository
/** @var AccountRepositoryInterface accountRepository */
$this->accountRepository = app(AccountRepositoryInterface::class);
// @var BudgetRepositoryInterface $repository
/** @var BudgetRepositoryInterface budgetRepository */
$this->budgetRepository = app(BudgetRepositoryInterface::class);
// @var CategoryRepositoryInterface categoryRepository
/** @var CategoryRepositoryInterface categoryRepository */
$this->categoryRepository = app(CategoryRepositoryInterface::class);
// @var PopupReportInterface popupHelper
/** @var PopupReportInterface popupHelper */
$this->popupHelper = app(PopupReportInterface::class);
return $next($request);