mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix #3739
This commit is contained in:
@@ -54,8 +54,7 @@ class ConvertController extends Controller
|
|||||||
{
|
{
|
||||||
use ModelInformation, UserNavigation;
|
use ModelInformation, UserNavigation;
|
||||||
|
|
||||||
/** @var JournalRepositoryInterface Journals and transactions overview */
|
private JournalRepositoryInterface $repository;
|
||||||
private $repository;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ConvertController constructor.
|
* ConvertController constructor.
|
||||||
@@ -260,7 +259,7 @@ class ConvertController extends Controller
|
|||||||
// group accounts:
|
// group accounts:
|
||||||
/** @var Account $account */
|
/** @var Account $account */
|
||||||
foreach ($accountList as $account) {
|
foreach ($accountList as $account) {
|
||||||
$balance = app('steam')->balance($account);
|
$balance = app('steam')->balance($account, today());
|
||||||
$currency = $repository->getAccountCurrency($account) ?? $defaultCurrency;
|
$currency = $repository->getAccountCurrency($account) ?? $defaultCurrency;
|
||||||
$role = (string) $repository->getMetaValue($account, 'account_role');
|
$role = (string) $repository->getMetaValue($account, 'account_role');
|
||||||
if ('' === $role) {
|
if ('' === $role) {
|
||||||
@@ -289,7 +288,7 @@ class ConvertController extends Controller
|
|||||||
// group accounts:
|
// group accounts:
|
||||||
/** @var Account $account */
|
/** @var Account $account */
|
||||||
foreach ($accountList as $account) {
|
foreach ($accountList as $account) {
|
||||||
$balance = app('steam')->balance($account);
|
$balance = app('steam')->balance($account, today());
|
||||||
$currency = $repository->getAccountCurrency($account) ?? $defaultCurrency;
|
$currency = $repository->getAccountCurrency($account) ?? $defaultCurrency;
|
||||||
$role = 'l_' . $account->accountType->type;
|
$role = 'l_' . $account->accountType->type;
|
||||||
$key = (string) trans('firefly.opt_group_' . $role);
|
$key = (string) trans('firefly.opt_group_' . $role);
|
||||||
|
Reference in New Issue
Block a user