riainvoice/application/views/reports/invoice_aging.php
gandhimathi Bharathirajan 516cc09df0 all files
2017-09-19 11:21:30 +05:30

35 lines
1.4 KiB
PHP

<!DOCTYPE html>
<html lang="<?php echo trans('cldr'); ?>">
<head>
<title><?php echo trans('invoice_aging'); ?></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('invoice_aging'); ?></h3>
<table>
<tr>
<th><?php echo trans('client'); ?></th>
<th class="amount"><?php echo trans('total'); ?></th>
<th class="amount"><?php echo trans('invoice_aging_1_30'); ?></th>
<th class="amount"><?php echo trans('invoice_aging_31_60'); ?></th>
<th class="amount"><?php echo trans('invoice_aging_61_90'); ?></th>
<th class="amount"><?php echo trans('invoice_aging_above_90'); ?></th>
</tr>
<?php foreach ($results as $result) { ?>
<tr>
<td><?php _htmlsc(format_client($result)); ?></td>
<td class="amount"><?php echo format_currency($result->total_balance); ?></td>
<td class="amount"><?php echo format_currency($result->range_1); ?></td>
<td class="amount"><?php echo format_currency($result->range_2); ?></td>
<td class="amount"><?php echo format_currency($result->range_3); ?></td>
<td class="amount"><?php echo format_currency($result->range_4); ?></td>
</tr>
<?php } ?>
</table>
</body>
</html>