File: //www/exchange0old/exchange/cache/%%6B^6B5^6B594AA2%%debtor_print_data.html.php
<?php /* Smarty version 2.6.19, created on 2024-06-17 14:15:16
compiled from statements/debtor_print_data.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'number_format', 'statements/debtor_print_data.html', 5, false),array('function', 'getTransactionName', 'statements/debtor_print_data.html', 24, false),)), $this); ?>
<?php if ($this->_tpl_vars['old_balance']): ?>
<tr class="row2">
<td colspan="4" align="right">Balance from Previous period :</td>
<td colspan="2"></td>
<td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['old_balance']['balance'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
</tr>
<?php endif; ?>
<?php $_from = $this->_tpl_vars['statement']['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['index'] => $this->_tpl_vars['item']):
?>
<tr
<?php if ($this->_tpl_vars['with_page_separator']): ?>
<?php if ($this->_tpl_vars['index']%2 == 0): ?>
class="row1"
<?php else: ?>
class="row2"
<?php endif; ?>
<?php endif; ?>
>
<td valign="top" align="center"><?php echo $this->_tpl_vars['item']['traded_date']; ?>
</td>
<td valign="top" align="center"><?php echo $this->_tpl_vars['item']['item_date']; ?>
</td>
<?php if ($this->_tpl_vars['item']['item_type'] == 'invoice'): ?>
<td valign="top" align="left"><?php echo $this->_tpl_vars['item']['trade_reference_id']; ?>
</td>
<?php else: ?>
<td valign="top" align="left">
<?php echo smarty_function_getTransactionName(array('transaction' => $this->_tpl_vars['item']), $this);?>
<?php if ($this->_tpl_vars['item']['item_index']): ?>
- <?php echo $this->_tpl_vars['item']['item_index']; ?>
<?php endif; ?>
</td>
<?php endif; ?>
<td valign="top" align="left" <?php echo $this->_tpl_vars['right_border']; ?>
>
<?php if ($this->_tpl_vars['item']['item_type'] == 'invoice'): ?>
<?php echo $this->_tpl_vars['item']['reference_prefix']; ?>
<?php endif; ?>
<?php echo $this->_tpl_vars['item']['item_reference']; ?>
</td>
<td valign="top" align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['item']['value'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
<td valign="top" align="center"><?php echo $this->_tpl_vars['item']['expected_date']; ?>
</td>
<td valign="top" align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['item']['balance'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
</tr>
<?php if ($this->_tpl_vars['with_page_separator']): ?>
<?php if ($this->_tpl_vars['old_balance']): ?>
<?php $this->assign('invoice_count', 20); ?>
<?php else: ?>
<?php $this->assign('invoice_count', 21); ?>
<?php endif; ?>
<?php if ($this->_tpl_vars['index'] <= $this->_tpl_vars['invoice_count']): ?>
<?php if (( $this->_tpl_vars['index']%$this->_tpl_vars['invoice_count'] == 0 && $this->_tpl_vars['index'] != 0 )): ?>
</table>
</div>
<div style="border:1px solid #CCC;">
<table width="100%" cellspacing="0" cellpadding="0" >
<tr>
<td valign="top" align="center" style=" background: none repeat scroll 0 0 #C0C0C0;border-top: 2px solid #FFFFFF;font-size: 11px;line-height: 16px;padding: 10px 0;" width="12%"><b>Traded Date</b> </td>
<td valign="top" align="center" style=" background: none repeat scroll 0 0 #C0C0C0;border-top: 2px solid #FFFFFF;font-size: 11px;line-height: 16px;padding: 10px 0;" width="12%"><b>Issued</b> </td>
<td valign="top" align="left" style=" background: none repeat scroll 0 0 #C0C0C0;border-top: 2px solid #FFFFFF;font-size: 11px;line-height: 16px;padding: 10px 0;" width="16%"><b>Trade ID</b></td>
<td valign="top" align="center" style=" background: none repeat scroll 0 0 #C0C0C0;border-top: 2px solid #FFFFFF;font-size: 11px;line-height: 16px;padding: 10px 0;" width="14%" style="border-right:4px solid #FFF;"><b>Ref.</b></td>
<td valign="top" align="center" style=" background: none repeat scroll 0 0 #C0C0C0;border-top: 2px solid #FFFFFF;font-size: 11px;line-height: 16px;padding: 10px 0;" width="16%"><b>Value</b></td>
<td valign="top" align="center" style=" background: none repeat scroll 0 0 #C0C0C0;border-top: 2px solid #FFFFFF;font-size: 11px;line-height: 16px;padding: 10px 0;" width="12%"><b>Expected</b></td>
<td valign="top" align="center" style=" background: none repeat scroll 0 0 #C0C0C0;border-top: 2px solid #FFFFFF;font-size: 11px;line-height: 16px;padding: 10px 0;" width="" style="border-right:4px solid #FFF;"><b>Balance</b></td>
</tr>
<?php $this->assign('j', 1); ?>
<?php endif; ?>
<?php else: ?>
<?php if ($this->_tpl_vars['j']%29 == 0): ?>
</table>
</div>
<br/>
<br/>
<div style="border-top:none;border-left:1px solid #CCC;border-right:1px solid #CCC;border-bottom:1px solid #CCC;">
<table width="100%" cellspacing="0" cellpadding="0" >
<tr>
<td valign="top" align="center" style=" background: none repeat scroll 0 0 #C0C0C0;border-top: 2px solid #FFFFFF;font-size: 11px;line-height: 16px;padding: 10px 0;" width="12%"><b>Traded Date</b> </td>
<td valign="top" align="center" style=" background: none repeat scroll 0 0 #C0C0C0;border-top: 2px solid #FFFFFF;font-size: 11px;line-height: 16px;padding: 10px 0;" width="12%"><b>Issued</b> </td>
<td valign="top" align="left" style=" background: none repeat scroll 0 0 #C0C0C0;border-top: 2px solid #FFFFFF;font-size: 11px;line-height: 16px;padding: 10px 0;" width="16%"><b>Trade ID</b></td>
<td valign="top" align="center" style=" background: none repeat scroll 0 0 #C0C0C0;border-top: 2px solid #FFFFFF;font-size: 11px;line-height: 16px;padding: 10px 0;" width="14%" style="border-right:4px solid #FFF;"><b>Ref.</b></td>
<td valign="top" align="center" style=" background: none repeat scroll 0 0 #C0C0C0;border-top: 2px solid #FFFFFF;font-size: 11px;line-height: 16px;padding: 10px 0;" width="16%"><b>Value</b></td>
<td valign="top" align="center" style=" background: none repeat scroll 0 0 #C0C0C0;border-top: 2px solid #FFFFFF;font-size: 11px;line-height: 16px;padding: 10px 0;" width="12%"><b>Expected</b></td>
<td valign="top" align="center" style=" background: none repeat scroll 0 0 #C0C0C0;border-top: 2px solid #FFFFFF;font-size: 11px;line-height: 16px;padding: 10px 0;" width="" style="border-right:4px solid #FFF;"><b>Balance</b></td>
</tr>
<?php endif; ?>
<?php endif; ?>
<?php $this->assign('j', $this->_tpl_vars['j']+1); ?>
<?php endif; ?>
<?php endforeach; endif; unset($_from); ?>
<tr
<?php if ($this->_tpl_vars['with_page_separator']): ?>
<?php if ($this->_tpl_vars['index']%2 == 0): ?>
class="row2"
<?php else: ?>
class="row1"
<?php endif; ?>
<?php endif; ?>
>
<td valign="top" align="left"></td>
<td valign="top" align="left"></td>
<td valign="top" align="left"></td>
<td valign="top" align="left"></td>
<td valign="top" align="left">Balance</td>
<td valign="top" align="left"></td>
<td valign="top" align="right">
<strong>
<?php if ($this->_tpl_vars['statement']['data']): ?>
<?php echo $this->_tpl_vars['item']['balance']; ?>
<?php elseif ($this->_tpl_vars['old_balance']): ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['old_balance']['balance'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
<?php endif; ?>
</strong>
</td>
</tr>