HEX
Server: Apache/2.2.15 (CentOS)
System: Linux ip-10-0-2-146.eu-west-1.compute.internal 2.6.32-754.35.1.el6.centos.plus.x86_64 #1 SMP Sat Nov 7 11:33:42 UTC 2020 x86_64
User: root (0)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: /www/exchange0old/exchange/admin/cache/%%83^839^83999FEF%%debtor_outstanding_etr.html.php
<?php /* Smarty version 2.6.19, created on 2024-06-25 13:14:01
         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', 38, false),array('modifier', 'number_format', 'reports/debtor_outstanding_etr.html', 51, false),)), $this); ?>
<table class="table table-striped table-bordered">
    <thead>
        <tr>
            <th>Originator ID</th>
            <th>Originator Name</th>
            <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>
            <th>EDSO Reserve</th>
            <th>ADSO Reserve</th>
            <th>Trade Commission</th>
            <th>EDSO Commission</th>
            <th>ADSO Commission</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['organisation']['organisation_reference_id']; ?>
</td>
                <td valign="top" align="left" nowrap="nowrap"><?php echo $this->_tpl_vars['organisation']['organisation_name']; ?>
</td>
                <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']['traded_date']; ?>
</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 ((is_array($_tmp=$this->_tpl_vars['item']['max_thirty_day_reserve'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 3) : smarty_modifier_number_format($_tmp, 3)); ?>
 %
                        <?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>
                <?php if ($this->_tpl_vars['item']['item_type'] == 'invoice'): ?>
                <td valign="top" align="right" nowrap="nowrap">
                    <?php if ($this->_tpl_vars['display']): ?>
                        <?php echo ((is_array($_tmp=$this->_tpl_vars['item']['edso_reserve'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>

                    <?php else: ?>
                        <?php echo $this->_tpl_vars['item']['edso_reserve']; ?>

                    <?php endif; ?>
                </td>
                <td valign="top" align="right" nowrap="nowrap">
                    <?php if ($this->_tpl_vars['display']): ?>
                        <?php echo ((is_array($_tmp=$this->_tpl_vars['item']['adso_reserve'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>

                    <?php else: ?>
                        <?php echo $this->_tpl_vars['item']['adso_reserve']; ?>

                    <?php endif; ?>
                </td>
                <td valign="top" align="right" nowrap="nowrap">
                    <?php if ($this->_tpl_vars['display']): ?>
                        <?php echo ((is_array($_tmp=$this->_tpl_vars['item']['processing_fee'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>

                    <?php else: ?>
                        <?php echo $this->_tpl_vars['item']['processing_fee']; ?>

                    <?php endif; ?>
                </td>
                <td valign="top" align="right" nowrap="nowrap">
                    <?php if ($this->_tpl_vars['display']): ?>
                    <?php echo ((is_array($_tmp=$this->_tpl_vars['item']['edso_commission'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>

                    <?php else: ?>
                    <?php echo $this->_tpl_vars['item']['edso_commission']; ?>

                    <?php endif; ?>
                </td>
                <td valign="top" align="right" nowrap="nowrap">
                    <?php if ($this->_tpl_vars['display']): ?>
                        <?php echo ((is_array($_tmp=$this->_tpl_vars['item']['adso_commission'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>

                    <?php else: ?>
                        <?php echo $this->_tpl_vars['item']['adso_commission']; ?>

                    <?php endif; ?>
                </td>
                <?php else: ?>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <?php endif; ?>
            </tr>
        <?php endforeach; endif; unset($_from); ?>
    </tbody>
    <tfoot>
        <tr>
            <th valign="top" colspan="13" 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="7"></td>
        </tr>
    </tfoot>
</table>