77 lines
2.0 KiB
PHP
77 lines
2.0 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="<?php echo trans('cldr'); ?>">
|
|
<head>
|
|
<title><?php echo trans('Year-Wise Report'); ?></title>
|
|
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/<?php echo get_setting('system_theme', 'invoiceplane'); ?>/css/reports.css" type="text/css">
|
|
</head>
|
|
<body>
|
|
|
|
<h3 class="report_title">
|
|
<?php echo trans('Year-Wise Report'); ?><br/>
|
|
|
|
</h3>
|
|
|
|
<table class="table table-striped table-condensed no-margin" id="tab">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th style="text-align:center"><?php echo trans('Months'); ?></th>
|
|
<th class="amount"><?php echo trans('Quantity'); ?></th>
|
|
<th class="amount"><?php echo trans('Value');?></th>
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
$tr3=0;
|
|
$tr4=0;
|
|
foreach ($results as $result) { ?>
|
|
<tr>
|
|
|
|
<td style="text-align:center"><?php
|
|
|
|
echo anchor('reports/sales/',($result->months) ); ?></td>
|
|
|
|
<td class="amount"><?php
|
|
$tr3= $tr3 + $result->quantity;
|
|
echo $result->quantity; ?></td>
|
|
<td class="amount"><?php
|
|
$tr4= $tr4 + $result->value;
|
|
echo format_currency($result->value); ?></td>
|
|
|
|
</tr>
|
|
<?php } ?>
|
|
<tr>
|
|
<td style="text-align:center;"><strong>Total</strong></td>
|
|
|
|
|
|
<td class="amount">
|
|
<strong>
|
|
<?php
|
|
{
|
|
echo format_currency($tr3,2,'.','');
|
|
|
|
}
|
|
?>
|
|
</strong>
|
|
</td>
|
|
<td class="amount">
|
|
<strong>
|
|
<?php
|
|
{
|
|
echo format_currency($tr4,2,'.','');
|
|
|
|
}
|
|
?>
|
|
</strong>
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
</body>
|
|
</html>
|