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/cache/%%4B^4BF^4BF2AC1A%%debtors_outstanding_etr.html.php
<?php /* Smarty version 2.6.19, created on 2024-06-19 15:17:43
         compiled from reports/debtors_outstanding_etr.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'getTransactionName', 'reports/debtors_outstanding_etr.html', 34, false),array('modifier', 'number_format', 'reports/debtors_outstanding_etr.html', 46, false),)), $this); ?>
<?php if ($this->_tpl_vars['outstanding_etr']): ?>
<?php $_from = $this->_tpl_vars['outstanding_etr']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['currency_code'] => $this->_tpl_vars['currency']):
?>
    <table class="table table-striped table-hover">
        <thead>
            <tr>
                <th colspan="14" align="center" style="text-align: center;"><?php echo $this->_tpl_vars['currency_code']; ?>
 </th>
            </tr>
            <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['currency']['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['item']['debtor_reference_id']; ?>
</td>
                <td valign="top" align="left" nowrap="nowrap"><?php echo $this->_tpl_vars['item']['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 ((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>
            </tr>
            <?php endforeach; endif; unset($_from); ?>
        </tbody>
        <tfoot>
        <tr>
            <th valign="top" colspan="11" align="left" style="text-align: left; padding-right: 10px !important;">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['currency']['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['currency']['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 endforeach; endif; unset($_from); ?>
<?php else: ?>
<table class="table table-striped table-bordered">
    <tbody>
        <tr>
            <th valign="top" class="table-result-empty">There are no records to display.</th>
        </tr>
    </tbody>
</table>
<?php endif; ?>