mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 01:06:46 +00:00
Auto commit for release 'branch-v6.2' on 2024-12-26
This commit is contained in:
@@ -85,6 +85,7 @@ class IndexController extends Controller
|
|||||||
$parameters->set('end', $end);
|
$parameters->set('end', $end);
|
||||||
$parameters->set('convertToNative', $this->convertToNative);
|
$parameters->set('convertToNative', $this->convertToNative);
|
||||||
$parameters->set('defaultCurrency', $this->defaultCurrency);
|
$parameters->set('defaultCurrency', $this->defaultCurrency);
|
||||||
|
|
||||||
/** @var BillTransformer $transformer */
|
/** @var BillTransformer $transformer */
|
||||||
$transformer = app(BillTransformer::class);
|
$transformer = app(BillTransformer::class);
|
||||||
$transformer->setParameters($parameters);
|
$transformer->setParameters($parameters);
|
||||||
|
@@ -455,7 +455,7 @@ class AccountController extends Controller
|
|||||||
Log::debug('END temp get end balance done');
|
Log::debug('END temp get end balance done');
|
||||||
|
|
||||||
$previous = array_values($range)[0];
|
$previous = array_values($range)[0];
|
||||||
$accountCurrency = $accountCurrency ?? $this->defaultCurrency; // do this AFTER getting the balances.
|
$accountCurrency ??= $this->defaultCurrency; // do this AFTER getting the balances.
|
||||||
Log::debug('Start chart loop.');
|
Log::debug('Start chart loop.');
|
||||||
|
|
||||||
$newRange = [];
|
$newRange = [];
|
||||||
@@ -473,7 +473,7 @@ class AccountController extends Controller
|
|||||||
$momentBalance = $newRange[$expectedIndex]['info'];
|
$momentBalance = $newRange[$expectedIndex]['info'];
|
||||||
Log::debug(sprintf('Expected index is %d!, date is %s, current is %s', $expectedIndex, $carbon->format('Y-m-d'), $current->format('Y-m-d')));
|
Log::debug(sprintf('Expected index is %d!, date is %s, current is %s', $expectedIndex, $carbon->format('Y-m-d'), $current->format('Y-m-d')));
|
||||||
$carbon = Carbon::createFromFormat('Y-m-d', $newRange[$expectedIndex]['date']);
|
$carbon = Carbon::createFromFormat('Y-m-d', $newRange[$expectedIndex]['date']);
|
||||||
$expectedIndex++;
|
++$expectedIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
$return = $this->updateChartKeys($return, $momentBalance);
|
$return = $this->updateChartKeys($return, $momentBalance);
|
||||||
|
@@ -129,7 +129,8 @@ class Steam
|
|||||||
DB::raw('SUM(transactions.foreign_amount) AS modified_foreign'),
|
DB::raw('SUM(transactions.foreign_amount) AS modified_foreign'),
|
||||||
DB::raw('SUM(transactions.native_amount) AS modified_native'),
|
DB::raw('SUM(transactions.native_amount) AS modified_native'),
|
||||||
]
|
]
|
||||||
);
|
)
|
||||||
|
;
|
||||||
|
|
||||||
$currentBalance = $startBalance;
|
$currentBalance = $startBalance;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user