diff --git a/app/Helpers/Report/PopupReport.php b/app/Helpers/Report/PopupReport.php index c03f1482d1..40f9be6dc7 100644 --- a/app/Helpers/Report/PopupReport.php +++ b/app/Helpers/Report/PopupReport.php @@ -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(); diff --git a/app/Http/Controllers/Popup/ReportController.php b/app/Http/Controllers/Popup/ReportController.php index b7d3fc7654..4d5b8a852a 100644 --- a/app/Http/Controllers/Popup/ReportController.php +++ b/app/Http/Controllers/Popup/ReportController.php @@ -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);