mirror of
https://github.com/Karaka-Management/oms-SupplierManagement.git
synced 2026-02-18 17:38:41 +00:00
fix username rendering and recursive collection creation
This commit is contained in:
parent
f3388852d8
commit
5fbf067be1
|
|
@ -333,7 +333,7 @@ echo $this->getData('nav')->render();
|
||||||
<?php
|
<?php
|
||||||
$temp = [];
|
$temp = [];
|
||||||
foreach ($monthlyPurchaseCosts as $monthly) {
|
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); ?>
|
<?= \implode(',', $temp); ?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user