File: /www/exchange0old/exchange/admin/cache/%%EA^EA6^EA6AAD84%%originator_creditor_settled_etr.html.php
<?php /* Smarty version 2.6.19, created on 2024-07-24 10:53:11
compiled from reports/originator_creditor_settled_etr.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'count', 'reports/originator_creditor_settled_etr.html', 26, false),array('modifier', 'number_format', 'reports/originator_creditor_settled_etr.html', 37, false),)), $this); ?>
<?php if ($this->_tpl_vars['data']['root_payments']): ?>
<table class="table table-striped table-bordered tbl-originator-creditor-settled-etr">
<tbody>
<?php $_from = $this->_tpl_vars['data']['root_payments']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['ccy_code'] => $this->_tpl_vars['ccy']):
?>
<tr>
<th valign="top" colspan="5" align="center" style="text-align: center;"><?php echo $this->_tpl_vars['ccy_code']; ?>
Payment(s)</th>
<th valign="top" colspan="2" align="center" style="text-align: center;">Creditor</th>
<th valign="top" colspan="5" align="center" style="text-align: center;">Settled c-ETR</th>
</tr>
<tr>
<th valign="top" align="left">No.</th>
<th valign="top" align="left">Received</th>
<th valign="top" align="left">Type</th>
<th valign="top" align="left">Amount</th>
<th valign="top" align="left" nowrap="nowrap">Fx Rate</th>
<th valign="top" align="left">ID</th>
<th valign="top" align="left">Name</th>
<th valign="top" align="left">Ref.</th>
<th valign="top" align="left">Ccy</th>
<th valign="top" align="right">Amount</th>
<th valign="top" align="right" nowrap="nowrap">Fx Rate</th>
</tr>
<?php $_from = $this->_tpl_vars['ccy']['transactions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['root_payments'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['root_payments']['total'] > 0):
foreach ($_from as $this->_tpl_vars['root_payment_id'] => $this->_tpl_vars['root_payment']):
$this->_foreach['root_payments']['iteration']++;
?>
<?php $this->assign('rowspan', count($this->_tpl_vars['root_payment']['invoices'])); ?>
<tr>
<td rowspan="<?php echo $this->_tpl_vars['rowspan']+1; ?>
"><?php echo $this->_foreach['root_payments']['iteration']; ?>
</td>
<td rowspan="<?php echo $this->_tpl_vars['rowspan']+1; ?>
" nowrap="nowrap"><?php echo $this->_tpl_vars['root_payment']['transaction_date']; ?>
</td>
<td rowspan="<?php echo $this->_tpl_vars['rowspan']+1; ?>
">
<?php if (( $this->_tpl_vars['root_payment']['transaction_type'] == 19 )): ?>
ICP
<?php endif; ?>
</td>
<td rowspan="<?php echo $this->_tpl_vars['rowspan']+1; ?>
" nowrap="nowrap" valign="top" align="right">
<?php if ($this->_tpl_vars['display'] == true): ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['root_payment']['amount'])) ? $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['root_payment']['amount'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2, ".", "") : smarty_modifier_number_format($_tmp, 2, ".", "")); ?>
<?php endif; ?>
</td>
<td rowspan="<?php echo $this->_tpl_vars['rowspan']+1; ?>
" nowrap="nowrap"><?php echo ((is_array($_tmp=$this->_tpl_vars['root_payment']['fx_rate'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 4, ".", "") : smarty_modifier_number_format($_tmp, 4, ".", "")); ?>
</td>
<?php if ($this->_tpl_vars['display'] == true): ?>
<td colspan="6"> </td>
<?php else: ?>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<?php endif; ?>
</tr>
<?php $_from = $this->_tpl_vars['root_payment']['invoices']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['invoice_id'] => $this->_tpl_vars['invoice']):
?>
<tr>
<?php if ($this->_tpl_vars['display'] == false): ?>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<?php endif; ?>
<td valign="top" nowrap="nowrap"><?php echo $this->_tpl_vars['invoice']['creditor_reference_id']; ?>
</td>
<td valign="top" nowrap="nowrap"><?php echo $this->_tpl_vars['invoice']['creditor_name']; ?>
</td>
<td valign="top" nowrap="nowrap"><?php echo $this->_tpl_vars['invoice']['invoice_ref']; ?>
</td>
<td valign="top" nowrap="nowrap"><?php echo $this->_tpl_vars['invoice']['invoice_ccy']; ?>
</td>
<td nowrap="nowrap" valign="top" align="right">
<?php if ($this->_tpl_vars['display'] == true): ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['invoice']['amount'])) ? $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['invoice']['amount'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2, ".", "") : smarty_modifier_number_format($_tmp, 2, ".", "")); ?>
<?php endif; ?>
</td>
<td nowrap="nowrap" valign="top" align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['invoice']['fx_rate'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 4, ".", "") : smarty_modifier_number_format($_tmp, 4, ".", "")); ?>
</td>
</tr>
<?php endforeach; endif; unset($_from); ?>
<?php endforeach; endif; unset($_from); ?>
<?php $_from = $this->_tpl_vars['ccy']['transactions_not_used']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['root_payments_not_used'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['root_payments_not_used']['total'] > 0):
foreach ($_from as $this->_tpl_vars['root_payment_id'] => $this->_tpl_vars['root_payment']):
$this->_foreach['root_payments_not_used']['iteration']++;
?>
<tr>
<td><?php echo $this->_foreach['root_payments_not_used']['iteration']+$this->_foreach['root_payments']['total']; ?>
</td>
<td nowrap="nowrap"><?php echo $this->_tpl_vars['root_payment']['transaction_date']; ?>
</td>
<td>
<?php if (( $this->_tpl_vars['root_payment']['transaction_type'] == 19 )): ?>
ICP
<?php endif; ?>
</td>
<td nowrap="nowrap" valign="top" align="right">
<?php if ($this->_tpl_vars['display'] == true): ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['root_payment']['amount'])) ? $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['root_payment']['amount'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2, ".", "") : smarty_modifier_number_format($_tmp, 2, ".", "")); ?>
<?php endif; ?>
</td>
<td nowrap="nowrap"><?php echo ((is_array($_tmp=$this->_tpl_vars['root_payment']['fx_rate'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 4, ".", "") : smarty_modifier_number_format($_tmp, 4, ".", "")); ?>
</td>
<?php if ($this->_tpl_vars['root_payment']['debtor_reference_id']): ?>
<td valign="top" nowrap="nowrap"><?php echo $this->_tpl_vars['root_payment']['debtor_reference_id']; ?>
</td>
<td valign="top" nowrap="nowrap"><?php echo $this->_tpl_vars['root_payment']['debtor_name']; ?>
</td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<?php else: ?>
<td colspan="6"> </td>
<?php endif; ?>
</tr>
<?php endforeach; endif; unset($_from); ?>
<tr>
<th colspan="3" valign="top" align="left">Total</th>
<th nowrap="nowrap" valign="top" style="text-align: right;" align="right">
<?php if ($this->_tpl_vars['display'] == true): ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['ccy']['totals']['payments'])) ? $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['ccy']['totals']['payments'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2, ".", "") : smarty_modifier_number_format($_tmp, 2, ".", "")); ?>
<?php endif; ?>
</th>
<th colspan="7"> </th>
</tr>
<tr>
<td colspan="11" style="border: none; background: white" height="20px"></td>
</tr>
<?php endforeach; endif; unset($_from); ?>
</table>
<?php else: ?>
<table class="table table-striped table-bordered">
<tbody>
<tr>
<th style="text-align: center;" class="table-result-empty" align="center" valign="top">There are no records to display.</th>
</tr>
</tbody>
</table>
<?php endif; ?>