File: /www/exchange0old/exchange/admin/cache/%%DD^DD2^DD2F7871%%etredit_history.html.php
<?php /* Smarty version 2.6.19, created on 2024-06-25 14:33:37
compiled from reports/etredit_history.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'siteUrl', 'reports/etredit_history.html', 9, false),array('modifier', 'number_format', 'reports/etredit_history.html', 95, false),array('modifier', 'storage', 'reports/etredit_history.html', 172, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>:: Credebt Exchange - Admin Panel ::</title>
<link rel="stylesheet" href="css/stylesheet.css" type="text/css" />
<link type="text/css" href="../css/bootstrap.min.css?ver=2" rel="stylesheet" />
<link rel="shortcut icon" href="<?php echo $_SESSION['base_url']; ?>
images/logo_favicon.ico" />
<link type="text/css" href="<?php echo ((is_array($_tmp='/css/ui-lightness/jquery-ui-1.10.4.custom.min.css')) ? $this->_run_mod_handler('siteUrl', true, $_tmp) : smarty_modifier_siteUrl($_tmp)); ?>
" rel="stylesheet" />
<script type="text/javascript" src="<?php echo ((is_array($_tmp='/js/jquery.js')) ? $this->_run_mod_handler('siteUrl', true, $_tmp) : smarty_modifier_siteUrl($_tmp)); ?>
"></script>
<script type="text/javascript" src="<?php echo ((is_array($_tmp='/js/jquery-ui-1.10.4.custom.js')) ? $this->_run_mod_handler('siteUrl', true, $_tmp) : smarty_modifier_siteUrl($_tmp)); ?>
"></script>
<script type="text/javascript" src="js/aj_admin_home.js"></script>
<script type="text/javascript">
function openWindow(url) {
var mypdf = window.open(url, "mypdf", "scrollbars=yes,width=1000,height=800");
mypdf.focus();
}
</script>
<style>
.bold_td{font-weight: bold}
</style>
</head>
<body style="background: none;">
<table class="table table-striped table-responsive table-bordered">
<tr>
<th colspan="25" style="padding:0!important;border:none">
<h4 style="color: #FFF;background: #555;margin: 0;padding: 15px 0 15px 0;">ETR edit history</h4>
</th>
</tr>
<tr>
<th nowrap="nowrap">Date</th>
<th nowrap="nowrap">Edited By</th>
<th nowrap="nowrap">Event Type</th>
<th nowrap="nowrap">Originator</th>
<th nowrap="nowrap">Debtor</th>
<th nowrap="nowrap">Face Value</th>
<th nowrap="nowrap">Ccy</th>
<?php if ($this->_tpl_vars['history']['0']['debtor_type'] == @TYPE_CREDITOR): ?>
<th nowrap="nowrap">VAT Included</th>
<th nowrap="nowrap">Unscheduled</th>
<?php endif; ?>
<th nowrap="nowrap">Is a-ETR</th>
<th nowrap="nowrap">Issue Date</th>
<th nowrap="nowrap">Expected Date</th>
<th nowrap="nowrap">Ref</th>
<th nowrap="nowrap">b-ETR ID</th>
<th nowrap="nowrap">EDSO</th>
<?php if ($this->_tpl_vars['history']['0']['debtor_type'] == @TYPE_DEBTOR): ?>
<th nowrap="nowrap">PP %</th>
<?php endif; ?>
<th nowrap="nowrap">SR %</th>
<th nowrap="nowrap">Fixed Charge %</th>
<th nowrap="nowrap">LDC Premium %</th>
<th nowrap="nowrap">Agent Commission %</th>
<?php if ($this->_tpl_vars['history']['0']['debtor_type'] == @TYPE_DEBTOR): ?>
<th nowrap="nowrap">Override 180 day rule</th>
<?php endif; ?>
<th nowrap="nowrap">Trade Fee</th>
<?php if ($this->_tpl_vars['history']['0']['debtor_type'] == @TYPE_DEBTOR): ?>
<th nowrap="nowrap">Reserve</th>
<?php endif; ?>
<th nowrap="nowrap">Invoice Document</th>
<th nowrap="nowrap">PO Document</th>
</tr>
<?php $_from = $this->_tpl_vars['history']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['etredit_history'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['etredit_history']['total'] > 0):
foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['item']):
$this->_foreach['etredit_history']['iteration']++;
?>
<?php $this->assign('change_key', $this->_tpl_vars['key']+1); ?>
<tr>
<td nowrap="nowrap" align="left">
<?php echo $this->_tpl_vars['item']['created_at']; ?>
</td>
<td align="left">
<?php if ($this->_tpl_vars['item']['created_type'] == 'admin'): ?>
<?php echo $this->_tpl_vars['item']['created_by']; ?>
<?php elseif ($this->_tpl_vars['item']['created_type'] == 'originator'): ?>
<?php echo $this->_tpl_vars['item']['originator_name']; ?>
<?php elseif ($this->_tpl_vars['item']['created_type'] == 'api'): ?>
API
<?php elseif ($this->_tpl_vars['item']['created_type'] == 'import'): ?>
Import
<?php elseif ($this->_tpl_vars['item']['created_type'] == 'system'): ?>
System
<?php endif; ?>
</td>
<td align="left">
<?php echo $this->_tpl_vars['item']['history_action']; ?>
</td>
<td align="left"<?php if ($this->_tpl_vars['item']['originator_name'] != $this->_tpl_vars['history'][$this->_tpl_vars['change_key']]['originator_name'] && ! ($this->_foreach['etredit_history']['iteration'] == $this->_foreach['etredit_history']['total'])): ?> class="bold_td"<?php endif; ?>>
<?php echo $this->_tpl_vars['item']['originator_name']; ?>
</td>
<td align="left"<?php if ($this->_tpl_vars['item']['debtor_name'] != $this->_tpl_vars['history'][$this->_tpl_vars['change_key']]['debtor_name'] && ! ($this->_foreach['etredit_history']['iteration'] == $this->_foreach['etredit_history']['total'])): ?> class="bold_td"<?php endif; ?>>
<?php echo $this->_tpl_vars['item']['debtor_name']; ?>
</td>
<td nowrap="nowrap" align="right"<?php if ($this->_tpl_vars['item']['face_value'] != $this->_tpl_vars['history'][$this->_tpl_vars['change_key']]['face_value'] && ! ($this->_foreach['etredit_history']['iteration'] == $this->_foreach['etredit_history']['total'])): ?> class="bold_td"<?php endif; ?>>
<?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)); ?>
</td>
<td nowrap="nowrap" align="left"<?php if ($this->_tpl_vars['item']['currency_code'] != $this->_tpl_vars['history'][$this->_tpl_vars['change_key']]['currency_code'] && ! ($this->_foreach['etredit_history']['iteration'] == $this->_foreach['etredit_history']['total'])): ?> class="bold_td"<?php endif; ?>>
<?php echo $this->_tpl_vars['item']['currency_code']; ?>
</td>
<?php if ($this->_tpl_vars['item']['debtor_type'] == @TYPE_CREDITOR): ?>
<td nowrap="nowrap" align="center"<?php if ($this->_tpl_vars['item']['vat_included'] != $this->_tpl_vars['history'][$this->_tpl_vars['change_key']]['vat_included'] && ! ($this->_foreach['etredit_history']['iteration'] == $this->_foreach['etredit_history']['total'])): ?> class="bold_td"<?php endif; ?>>
<input type="checkbox" disabled <?php if ($this->_tpl_vars['item']['vat_included']): ?>checked<?php endif; ?>>
</td>
<td nowrap="nowrap" align="center"<?php if ($this->_tpl_vars['item']['unscheduled_cetr'] != $this->_tpl_vars['history'][$this->_tpl_vars['change_key']]['unscheduled_cetr'] && ! ($this->_foreach['etredit_history']['iteration'] == $this->_foreach['etredit_history']['total'])): ?> class="bold_td"<?php endif; ?>>
<input type="checkbox" disabled <?php if ($this->_tpl_vars['item']['unscheduled_cetr']): ?>checked<?php endif; ?>>
</td>
<?php endif; ?>
<td nowrap="nowrap" align="center"<?php if ($this->_tpl_vars['item']['is_aetr'] != $this->_tpl_vars['history'][$this->_tpl_vars['change_key']]['is_aetr'] && ! ($this->_foreach['etredit_history']['iteration'] == $this->_foreach['etredit_history']['total'])): ?> class="bold_td"<?php endif; ?>>
<input type="checkbox" disabled <?php if ($this->_tpl_vars['item']['is_aetr']): ?>checked<?php endif; ?>>
</td>
<td nowrap="nowrap" align="left"<?php if ($this->_tpl_vars['item']['actual_date'] != $this->_tpl_vars['history'][$this->_tpl_vars['change_key']]['actual_date'] && ! ($this->_foreach['etredit_history']['iteration'] == $this->_foreach['etredit_history']['total'])): ?> class="bold_td"<?php endif; ?>>
<?php echo $this->_tpl_vars['item']['actual_date']; ?>
</td>
<td nowrap="nowrap" align="left"<?php if ($this->_tpl_vars['item']['expected_date'] != $this->_tpl_vars['history'][$this->_tpl_vars['change_key']]['expected_date'] && ! ($this->_foreach['etredit_history']['iteration'] == $this->_foreach['etredit_history']['total'])): ?> class="bold_td"<?php endif; ?>>
<?php echo $this->_tpl_vars['item']['expected_date']; ?>
</td>
<td align="left"<?php if ($this->_tpl_vars['item']['invoice_no'] != $this->_tpl_vars['history'][$this->_tpl_vars['change_key']]['invoice_no'] && ! ($this->_foreach['etredit_history']['iteration'] == $this->_foreach['etredit_history']['total'])): ?> class="bold_td"<?php endif; ?>>
<?php echo $this->_tpl_vars['item']['invoice_no']; ?>
</td>
<td align="left"<?php if ($this->_tpl_vars['item']['orpa_reference'] != $this->_tpl_vars['history'][$this->_tpl_vars['change_key']]['orpa_reference'] && ! ($this->_foreach['etredit_history']['iteration'] == $this->_foreach['etredit_history']['total'])): ?> class="bold_td"<?php endif; ?>>
<?php echo $this->_tpl_vars['item']['orpa_reference']; ?>
</td>
<td nowrap="nowrap" align="right"<?php if ($this->_tpl_vars['item']['edso'] != $this->_tpl_vars['history'][$this->_tpl_vars['change_key']]['edso'] && ! ($this->_foreach['etredit_history']['iteration'] == $this->_foreach['etredit_history']['total'])): ?> class="bold_td"<?php endif; ?>>
<?php echo $this->_tpl_vars['item']['edso']; ?>
</td>
<?php if ($this->_tpl_vars['item']['debtor_type'] == @TYPE_DEBTOR): ?>
<td nowrap="nowrap" align="right"<?php if ($this->_tpl_vars['item']['purchase_price_percent'] != $this->_tpl_vars['history'][$this->_tpl_vars['change_key']]['purchase_price_percent'] && ! ($this->_foreach['etredit_history']['iteration'] == $this->_foreach['etredit_history']['total'])): ?> class="bold_td"<?php endif; ?>>
<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['purchase_price_percent'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
<?php endif; ?>
<td nowrap="nowrap" align="right"<?php if ($this->_tpl_vars['item']['max_thirty_day_reserve'] != $this->_tpl_vars['history'][$this->_tpl_vars['change_key']]['max_thirty_day_reserve'] && ! ($this->_foreach['etredit_history']['iteration'] == $this->_foreach['etredit_history']['total'])): ?> class="bold_td"<?php endif; ?>>
<?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)); ?>
</td>
<td nowrap="nowrap" align="right"<?php if ($this->_tpl_vars['item']['face_value_charge'] != $this->_tpl_vars['history'][$this->_tpl_vars['change_key']]['face_value_charge'] && ! ($this->_foreach['etredit_history']['iteration'] == $this->_foreach['etredit_history']['total'])): ?> class="bold_td"<?php endif; ?>>
<?php if ($this->_tpl_vars['item']['face_value_charge']): ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['face_value_charge'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 3) : smarty_modifier_number_format($_tmp, 3)); ?>
<?php else: ?>
-
<?php endif; ?>
</td>
<td nowrap="nowrap" align="right"<?php if ($this->_tpl_vars['item']['ldc_premium'] != $this->_tpl_vars['history'][$this->_tpl_vars['change_key']]['ldc_premium'] && ! ($this->_foreach['etredit_history']['iteration'] == $this->_foreach['etredit_history']['total'])): ?> class="bold_td"<?php endif; ?>>
<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['ldc_premium'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 3) : smarty_modifier_number_format($_tmp, 3)); ?>
</td>
<td nowrap="nowrap" align="right"<?php if ($this->_tpl_vars['item']['agent_commission'] != $this->_tpl_vars['history'][$this->_tpl_vars['change_key']]['agent_commission'] && ! ($this->_foreach['etredit_history']['iteration'] == $this->_foreach['etredit_history']['total'])): ?> class="bold_td"<?php endif; ?>>
<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['agent_commission'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 3) : smarty_modifier_number_format($_tmp, 3)); ?>
</td>
<?php if ($this->_tpl_vars['item']['debtor_type'] == @TYPE_DEBTOR): ?>
<td nowrap="nowrap" align="center"<?php if ($this->_tpl_vars['item']['override_180_day_rule'] != $this->_tpl_vars['history'][$this->_tpl_vars['change_key']]['override_180_day_rule'] && ! ($this->_foreach['etredit_history']['iteration'] == $this->_foreach['etredit_history']['total'])): ?> class="bold_td"<?php endif; ?>>
<input type="checkbox" disabled <?php if ($this->_tpl_vars['item']['override_180_day_rule']): ?>checked<?php endif; ?>>
</td>
<?php endif; ?>
<td nowrap="nowrap" align="right"<?php if ($this->_tpl_vars['item']['trade_fee'] != $this->_tpl_vars['history'][$this->_tpl_vars['change_key']]['trade_fee'] && ! ($this->_foreach['etredit_history']['iteration'] == $this->_foreach['etredit_history']['total'])): ?> class="bold_td"<?php endif; ?>>
<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['trade_fee'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
<?php if ($this->_tpl_vars['item']['debtor_type'] == @TYPE_DEBTOR): ?>
<td nowrap="nowrap" align="right"<?php if ($this->_tpl_vars['item']['reserve'] != $this->_tpl_vars['history'][$this->_tpl_vars['change_key']]['reserve'] && ! ($this->_foreach['etredit_history']['iteration'] == $this->_foreach['etredit_history']['total'])): ?> class="bold_td"<?php endif; ?>>
<?php if ($this->_tpl_vars['item']['reserve']): ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['reserve'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
<?php else: ?>
-
<?php endif; ?>
</td>
<?php endif; ?>
<?php if ($this->_tpl_vars['item']['debtor_type'] == @TYPE_DEBTOR): ?>
<?php $this->assign('invoice_storage', 'd-etr-invoices'); ?>
<?php $this->assign('po_storage', 'd-purchase-orders'); ?>
<?php else: ?>
<?php $this->assign('invoice_storage', 'c-etr-invoices'); ?>
<?php $this->assign('po_storage', 'c-purchase-orders'); ?>
<?php endif; ?>
<td align="center"<?php if ($this->_tpl_vars['item']['invoice_link'] != $this->_tpl_vars['history'][$this->_tpl_vars['change_key']]['invoice_link'] && ! ($this->_foreach['etredit_history']['iteration'] == $this->_foreach['etredit_history']['total'])): ?> class="bold_td"<?php endif; ?>>
<a title="<?php echo $this->_tpl_vars['item']['invoice_link']; ?>
" href="javascript:void(0);" onclick="openWindow('<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['invoice_link'])) ? $this->_run_mod_handler('storage', true, $_tmp, $this->_tpl_vars['invoice_storage']) : smarty_modifier_storage($_tmp, $this->_tpl_vars['invoice_storage'])); ?>
')"><img src="images/download_history_pdf.png" border="0" height="16"></a>
</td>
<td align="center"<?php if ($this->_tpl_vars['item']['po_link'] != $this->_tpl_vars['history'][$this->_tpl_vars['change_key']]['po_link'] && ! ($this->_foreach['etredit_history']['iteration'] == $this->_foreach['etredit_history']['total'])): ?> class="bold_td"<?php endif; ?>>
<a title="<?php echo $this->_tpl_vars['item']['po_link']; ?>
" href="javascript:void(0);" onclick="openWindow('<?php echo ((is_array($_tmp=$this->_tpl_vars['item']['po_link'])) ? $this->_run_mod_handler('storage', true, $_tmp, $this->_tpl_vars['po_storage']) : smarty_modifier_storage($_tmp, $this->_tpl_vars['po_storage'])); ?>
')"><img src="images/download_history_pdf.png" border="0" height="16"></a>
</td>
</tr>
<?php endforeach; endif; unset($_from); ?>
</table>
</body>
</html>