File: /www/exchange0old/exchange/cache/%%83^839^83999FEF%%debtor_outstanding_etr.html.php
<?php /* Smarty version 2.6.19, created on 2024-06-17 16:21:08
compiled from reports/debtor_outstanding_etr.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'getTransactionName', 'reports/debtor_outstanding_etr.html', 30, false),array('modifier', 'number_format', 'reports/debtor_outstanding_etr.html', 42, false),)), $this); ?>
<?php if ($this->_tpl_vars['records']): ?>
<table class="table table-striped table-hover">
<thead>
<tr>
<th>Debtor ID</th>
<th>Debtor Name</th>
<th>Trade ID</th>
<th>Traded Date</th>
<th>Issue Date</th>
<th>Invoice Ref.</th>
<th>Date Entered</th>
<th>EDSO</th>
<th>ADSO</th>
<th>RDSO</th>
<th>Ccy</th>
<th>Face Value</th>
<th>Sell Rate</th>
<th>PP</th>
</tr>
</thead>
<tbody>
<?php $_from = $this->_tpl_vars['records']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['item']):
?>
<tr>
<td valign="top" align="left" nowrap="nowrap"><?php echo $this->_tpl_vars['debtor']['debtor_reference_id']; ?>
</td>
<td valign="top" align="left" nowrap="nowrap"><?php echo $this->_tpl_vars['debtor']['debtor_name']; ?>
</td>
<?php if ($this->_tpl_vars['item']['item_type'] == 'invoice'): ?>
<td valign="top" align="left" nowrap="nowrap"><?php echo $this->_tpl_vars['item']['trade_id']; ?>
</td>
<?php else: ?>
<td valign="top" align="left" nowrap="nowrap"><?php echo smarty_function_getTransactionName(array('transaction' => $this->_tpl_vars['item']), $this);?>
</td>
<?php endif; ?>
<td valign="top" align="center" nowrap="nowrap"><?php echo $this->_tpl_vars['item']['date_traded']; ?>
</td>
<td valign="top" align="center" nowrap="nowrap"><?php echo $this->_tpl_vars['item']['issue_date']; ?>
</td>
<td valign="top" align="left" nowrap="nowrap"><?php echo $this->_tpl_vars['item']['invoice_ref']; ?>
</td>
<td valign="top" align="center" nowrap="nowrap"><?php echo $this->_tpl_vars['item']['date_entered']; ?>
</td>
<td valign="top" align="center" nowrap="nowrap"><?php echo $this->_tpl_vars['item']['edso']; ?>
</td>
<td valign="top" align="center" nowrap="nowrap"><?php echo $this->_tpl_vars['item']['adso']; ?>
</td>
<td valign="top" align="center" nowrap="nowrap"><?php echo $this->_tpl_vars['item']['rdso']; ?>
</td>
<td valign="top" align="center" nowrap="nowrap"><?php echo $this->_tpl_vars['item']['ccy']; ?>
</td>
<td valign="top" align="right" nowrap="nowrap">
<?php if ($this->_tpl_vars['display'] == true): ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['face_value'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2, ".", ",") : smarty_modifier_number_format($_tmp, 2, ".", ",")); ?>
<?php else: ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['face_value'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2, ".", "") : smarty_modifier_number_format($_tmp, 2, ".", "")); ?>
<?php endif; ?>
</td>
<td valign="top" align="right" nowrap="nowrap">
<?php if ($this->_tpl_vars['item']['max_thirty_day_reserve']): ?>
<?php if ($this->_tpl_vars['display'] == true): ?>
<?php echo $this->_tpl_vars['item']['max_thirty_day_reserve']; ?>
%
<?php else: ?>
<?php
$item = $this->get_template_vars('item');
echo $item['max_thirty_day_reserve'] / 100;
?>
<?php endif; ?>
<?php endif; ?>
</td>
<td valign="top" align="right" nowrap="nowrap">
<?php if ($this->_tpl_vars['item']['purchase_discount']): ?>
<?php if ($this->_tpl_vars['display'] == true): ?>
<?php echo $this->_tpl_vars['item']['purchase_discount']; ?>
%
<?php else: ?>
<?php
$item = $this->get_template_vars('item');
echo $item['purchase_discount'] / 100;
?>
<?php endif; ?>
<?php endif; ?>
</td>
</tr>
<?php endforeach; endif; unset($_from); ?>
</tbody>
<tfoot>
<tr>
<th valign="top" colspan="11" align="left" style="text-align: left;">Balance </th>
<th valign="top" align="right" style="text-align: right;">
<?php if ($this->_tpl_vars['display'] == true): ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['summary']['face_value'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2, ".", ",") : smarty_modifier_number_format($_tmp, 2, ".", ",")); ?>
<?php else: ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['summary']['face_value'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2, ".", "") : smarty_modifier_number_format($_tmp, 2, ".", "")); ?>
<?php endif; ?>
</th>
<td colspan="2"></td>
</tr>
</tfoot>
</table>
<?php else: ?>
<table class="table table-striped table-bordered">
<tbody>
<tr>
<th class="table-result-empty" valign="top">There are no records to display.</th>
</tr>
</tbody>
</table>
<?php endif; ?>