mirror of
https://github.com/Karaka-Management/oms-SupplierManagement.git
synced 2026-01-11 01:18:40 +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
|
||||
$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); ?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user