Skip to content

Commit

Permalink
internal(frozen period): retain summary on used currencies only
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed Nov 30, 2023
1 parent b5f6938 commit bd58a50
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Controllers/FrozenPeriodController.php
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,11 @@ function ($groups, $account) use ($keyed_calculations) {
$statements = array_reduce(
$currencies,
function ($statements, $currency) use ($grouped_summaries) {
if (!isset($grouped_summaries[$currency->id])) {
// Include currencies only used in statements
return $statements;
}

$summaries = $grouped_summaries[$currency->id];

$unadjusted_total_income = array_reduce(
Expand Down

0 comments on commit bd58a50

Please sign in to comment.