fix username rendering and recursive collection creation

This commit is contained in:
Dennis Eichhorn 2022-03-11 23:23:03 +01:00
parent f3388852d8
commit 5fbf067be1

View File

@ -333,7 +333,7 @@ echo $this->getData('nav')->render();
<?php
$temp = [];
foreach ($monthlyPurchaseCosts as $monthly) {
$temp[] = \round(((((int) $monthly['net_purchase']) - ((int) $monthly['net_costs'])) / ((int) $monthly['net_purchase'])) * 100, 2);
$temp[] = \round(((((int) $monthly['net_purchase']) - ((int) ($monthly['net_costs'] ?? 0))) / (((int) $monthly['net_purchase']) + 0.0001)) * 100, 2);
}
?>
<?= \implode(',', $temp); ?>