Added Revenue information

This commit is contained in:
Deon George
2013-10-29 10:36:57 +11:00
parent 1407da5e01
commit 28ea1ac613
14 changed files with 150 additions and 9 deletions

View File

@@ -0,0 +1,29 @@
<table class="table table-striped table-condensed table-hover" id="list-table">
<thead>
<tr>
<th>Category</th>
<th>Supplier</th>
<th>Count</th>
<th>Revenue</th>
<th>Cost</th>
<th>%</th>
</tr>
</thead>
<tbody>
<?php foreach ($o as $cat => $details) : ?>
<tr><td><?php echo $cat; ?></td><td colspan="5">&nbsp;</td></tr>
<tr>
<?php foreach ($details as $supplier => $summary) : ?>
<td>&nbsp;</td>
<td><?php echo $supplier; ?></td>
<td><?php echo $summary['count']; ?></td>
<td><?php echo Currency::display($summary['revenue']); ?></td>
<td><?php echo Currency::display($summary['cost']); ?></td>
<td><?php echo $summary['cost'] ? Currency::display($summary['revenue']/$summary['cost'],2) : '-'; ?></td>
</tr>
<?php endforeach ?> <!-- /details -->
<?php endforeach ?>
</tbody>
</table>