Fixed percent calculation in Preorder/Index
This commit is contained in:
@@ -114,7 +114,7 @@
|
||||
<a href="<?=self::getUrl("Preorder", "Index", ["filter" => ["preordercampaign_id" => $camp->id]])?>">
|
||||
<?=$camp->active_preorder_count?>
|
||||
<?php if($camp->homes_total): ?>
|
||||
/ <?=$camp->homes_total?> (<?=(round((count($camp->active_preorders) / $camp->homes_total) * 100, 2))?> %)
|
||||
/ <?=$camp->homes_total?> (<?=(round(($camp->active_preorder_count / $camp->homes_total) * 100, 2))?> %)
|
||||
<?php endif; ?>
|
||||
</a>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user