🤖 Auto commit for release 'develop' on 2025-08-09

This commit is contained in:
JC5
2025-08-09 20:15:36 +02:00
parent 4196ce31f0
commit 5a2f6b2652
3 changed files with 8 additions and 8 deletions

View File

@@ -98,10 +98,10 @@ trait PeriodOverview
/** @var array $dates */
$dates = Navigation::blockPeriods($start, $end, $range);
$entries = [];
// $spent = [];
// $earned = [];
// $transferredAway = [];
// $transferredIn = [];
// $spent = [];
// $earned = [];
// $transferredAway = [];
// $transferredIn = [];
// run a custom query because doing this with the collector is MEGA slow.
$transactions = $this->accountRepository->periodCollection($account, $start, $end);
@@ -168,7 +168,7 @@ trait PeriodOverview
* @var array $item
*/
foreach ($transactions as $index => $item) {
$date = Carbon::parse($item['date']);
$date = Carbon::parse($item['date']);
if ($date >= $start && $date <= $end) {
if ('away' === $direction && -1 === bccomp((string)$item['amount'], '0')) {
$result[] = $item;