mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 02:26:58 +00:00
Fix #1134
This commit is contained in:
@@ -136,7 +136,7 @@ class PopupReport implements PopupReportInterface
|
|||||||
/** @var JournalCollectorInterface $collector */
|
/** @var JournalCollectorInterface $collector */
|
||||||
$collector = app(JournalCollectorInterface::class);
|
$collector = app(JournalCollectorInterface::class);
|
||||||
$collector->setAccounts($attributes['accounts'])->setTypes([TransactionType::WITHDRAWAL, TransactionType::TRANSFER])
|
$collector->setAccounts($attributes['accounts'])->setTypes([TransactionType::WITHDRAWAL, TransactionType::TRANSFER])
|
||||||
->setRange($attributes['startDate'], $attributes['endDate'])
|
->setRange($attributes['startDate'], $attributes['endDate'])->withOpposingAccount()
|
||||||
->setCategory($category);
|
->setCategory($category);
|
||||||
$journals = $collector->getJournals();
|
$journals = $collector->getJournals();
|
||||||
|
|
||||||
|
@@ -59,16 +59,16 @@ class ReportController extends Controller
|
|||||||
parent::__construct();
|
parent::__construct();
|
||||||
$this->middleware(
|
$this->middleware(
|
||||||
function ($request, $next) {
|
function ($request, $next) {
|
||||||
// @var AccountRepositoryInterface $repository
|
/** @var AccountRepositoryInterface accountRepository */
|
||||||
$this->accountRepository = app(AccountRepositoryInterface::class);
|
$this->accountRepository = app(AccountRepositoryInterface::class);
|
||||||
|
|
||||||
// @var BudgetRepositoryInterface $repository
|
/** @var BudgetRepositoryInterface budgetRepository */
|
||||||
$this->budgetRepository = app(BudgetRepositoryInterface::class);
|
$this->budgetRepository = app(BudgetRepositoryInterface::class);
|
||||||
|
|
||||||
// @var CategoryRepositoryInterface categoryRepository
|
/** @var CategoryRepositoryInterface categoryRepository */
|
||||||
$this->categoryRepository = app(CategoryRepositoryInterface::class);
|
$this->categoryRepository = app(CategoryRepositoryInterface::class);
|
||||||
|
|
||||||
// @var PopupReportInterface popupHelper
|
/** @var PopupReportInterface popupHelper */
|
||||||
$this->popupHelper = app(PopupReportInterface::class);
|
$this->popupHelper = app(PopupReportInterface::class);
|
||||||
|
|
||||||
return $next($request);
|
return $next($request);
|
||||||
|
Reference in New Issue
Block a user