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/%%BD^BDF^BDF151EC%%debtor_statements.html.php
<?php /* Smarty version 2.6.19, created on 2024-06-17 08:31:06
         compiled from statements/debtor_statements.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'siteUrl', 'statements/debtor_statements.html', 2, false),array('modifier', 'date_format', 'statements/debtor_statements.html', 66, false),array('modifier', 'number_format', 'statements/debtor_statements.html', 159, false),array('function', 'getTransactionName', 'statements/debtor_statements.html', 266, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script type="text/javascript" src="<?php echo ((is_array($_tmp='/js/jquery.ui.core.js')) ? $this->_run_mod_handler('siteUrl', true, $_tmp) : smarty_modifier_siteUrl($_tmp)); ?>
"></script>
<script type="text/javascript" src="<?php echo ((is_array($_tmp='/js/ui.datepicker.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.form.js')) ? $this->_run_mod_handler('siteUrl', true, $_tmp) : smarty_modifier_siteUrl($_tmp)); ?>
"></script>
<link type="text/css" href="<?php echo ((is_array($_tmp='/css/bootstrap.min.css')) ? $this->_run_mod_handler('siteUrl', true, $_tmp) : smarty_modifier_siteUrl($_tmp)); ?>
" rel="stylesheet" />

<table cellspacing="0" cellpadding="0" border="0" width="100%">
  <tbody>
    <tr>
      <td align="left" valign="top"><table cellspacing="0" cellpadding="0" border="0" width="100%">
        <tbody>
          <tr>
            <td align="center" valign="top">&nbsp;</td>
          </tr>
          <tr>
            <td align="left" valign="middle" class="login_bg"><table cellspacing="0" cellpadding="0" border="0" width="100%">
              <tbody>
                <tr>
                  <td align="left" valign="middle" class="login_bg_t">Exchange Trade Centre | Exchange Statement</td>
                  <td width="" align="left" valign="middle" class="txt_11">Originator Organisation ID: <?php echo $_SESSION['user']['org_ref_id']; ?>
  </td>
                  <td align="right" valign="middle" class="txt_11"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'originator_top_dashboard_links.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
                </tr>
              </tbody>
            </table>
            <tr>
              <td align="center" valign="top" class="about_c"><table cellspacing="5" cellpadding="5" border="0" width="100%">
                <tbody>
                  <tr>
                    <td align="left" width="18%" valign="top"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'left_sidebar.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>

                    <td align="right" width="82%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td align="left" valign="top" class="hdr_center">
                          <table cellpadding="0" cellspacing="0" border="0" width="100%" class="clsoverride">
                                <tr >
                                  <td valign="top" align="center" colspan="3" class="inves_top1"  width="80%">RSA Details</td>
                                  <td valign="top" align="right" colspan="3" class="inves_top1"  width="20%">
                                    <?php if ($_GET['uid'] != ''): ?>
                                    <a href="index.php?do=intermediaryhome" class="trade_floor_bttn">Dashboard</a>
                                    <?php else: ?>
                                    <a href="index.php?do=retailerhome" class="trade_floor_bttn">Dashboard</a>
                                    <?php endif; ?>&nbsp;</td>
                                  </tr>

                                  <tr >
                                      <td colspan="5"> 
                                        <div style="display:none;" class="error-msgbox"></div>
                                      </td>
                                  </tr>
                                  <tr  class="row1">
                                    <td width="14%" align="right"><strong>Start Date :</strong></td>
                                    <td width="11%"><?php echo $this->_tpl_vars['reportStartDate']; ?>
</td>
                                    <td width="21%" align="right"><strong>Debtor :</strong></td>
                                    <td width="21%"><?php echo $this->_tpl_vars['debtor']['debtor_name']; ?>
</td>
                                    <td valign="top" align="right" colspan="2" width="31%"><a href="index.php?do=addtransaction"><strong style="color:#FF0000;text-decoration:underline;font-size:11px;">Report an expected payment <br />that is not being shown here</strong></a>
                                    </td>
                                  </tr>
                                  <tr class="row1">
                                      <td align="right" valign="bottom"> <strong>Statement From : </strong></td>
                                      <td valign="middle">
                                          <?php if ($_GET['stmt_from'] == ''): ?>
                                          <?php if ($this->_tpl_vars['statement']['data']['0']['traded_date']): ?>
                                          <?php echo $this->_tpl_vars['statement']['data']['0']['traded_date']; ?>

                                          <input type="hidden" name="stmt_from_date" id="stmt_from_date"  value="<?php echo $this->_tpl_vars['statement']['data']['0']['item_date']; ?>
">
                                          <?php else: ?>
                                          <?php echo ((is_array($_tmp=time())) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>

                                          <input type="hidden" name="stmt_from_date" id="stmt_from_date"  value="<?php echo ((is_array($_tmp=time())) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
">
                                          <?php endif; ?>
                                          <?php else: ?>
                                          <?php echo $_GET['stmt_from']; ?>

                                          <input type="hidden" name="stmt_from_date" id="stmt_from_date"  value="<?php echo $_GET['stmt_from']; ?>
">
                                          <?php endif; ?>


                                          <input type="hidden" name="statement_date" id="statement_date" value="" />
                                          <input type="hidden" name="statement_month" id="statement_month" value="" />
                                          <input type="hidden" name="statement_year" id="statement_year" value="" />
                                          <script>
                                              //For Date Picker
                                              $(function() {
                                                  $( "#statement_year" ).datepicker({
                                                      minDate: null,
                                                      showOn: "button",
                                                      buttonImage: "<?php echo ((is_array($_tmp='/images/calender_month.png')) ? $this->_run_mod_handler('siteUrl', true, $_tmp) : smarty_modifier_siteUrl($_tmp)); ?>
",
                                                      buttonImageOnly: true,
                                                      onSelect: function( selectedDate ) {

                                                          var i =0;selDate = selectedDate.split('/');var dates = new Array("statement_month","statement_date","statement_year");

                                                          var datasplited= selDate[2]+'-'+selDate[0]+'-'+selDate[1];


                                                          var toDate = $('#stmt_to_date').val();

                                                          if (datasplited > toDate) {
                                                              $('.error-msgbox').css('display','block').html('Statement from date is greater than statement to date.');
                                                          } else{

                                                              window.location.href='index.php?do=trastatusmgnt&id=<?php echo $_GET['id']; ?>
&stmt_from='+datasplited+'&stmt_to='+toDate+'';
                                                          }

                                                          for(i = 0; i <=2; i++){
                                                              $( "#"+dates[i] ).val(selDate[i]);

                                                          }
                                                      }
                                                  });
                                              });
                                          </script></td>
                                    <td align="right"><strong>ID :</strong></td>
                                    <td><?php echo $this->_tpl_vars['debtor']['debtor_reference_id']; ?>
</td>
                                    <td valign="top" align="right" colspan="2"><a href="index.php?do=addtransaction&type=2"><strong class="Clstr_hints" style="font-size:11px;">Submit a Payment Transfer</strong></a>
                                    </td>
                                  </tr>
                                  <tr class="row1">
                                      <td valign="bottom" align="right"><strong>Statement To :</strong></td>
                                      <td valign="middle" align="left">
                                          <?php if ($_GET['stmt_to'] == ''): ?>
                                          <?php echo $this->_tpl_vars['rate']['3']['2']; ?>

                                          <input type="hidden" name="stmt_to_date" id="stmt_to_date" value="<?php echo $this->_tpl_vars['rate']['3']['2']; ?>
">
                                          <?php else: ?>
                                          <?php echo $_GET['stmt_to']; ?>

                                          <input type="hidden" name="stmt_to_date" id="stmt_to_date" value="<?php echo $_GET['stmt_to']; ?>
">
                                          <?php endif; ?>

                                          <input type="hidden" name="statement_date_to" id="statement_date_to" value="" />
                                          <input type="hidden" name="statement_month_to" id="statement_month_to" value="" />
                                          <input type="hidden" name="statement_year_to" id="statement_year_to" value="" />
                                          <script>
                                              //For Date Picker
                                              $(function() {
                                                  $( "#statement_year_to" ).datepicker({
                                                      minDate: null,
                                                      showOn: "button",
                                                      buttonImage: "<?php echo ((is_array($_tmp='/images/calender_month.png')) ? $this->_run_mod_handler('siteUrl', true, $_tmp) : smarty_modifier_siteUrl($_tmp)); ?>
",
                                                      buttonImageOnly: true,
                                                      onSelect: function( selectedDate ) {

                                                          var i =0;selDate = selectedDate.split('/');var dates = new Array("statement_month_to","statement_date_to","statement_year_to");
                                                          var datasplited= selDate[2]+'-'+selDate[0]+'-'+selDate[1];

                                                          var fromDate = $('#stmt_from_date').val();

                                                          if (datasplited < fromDate) {
                                                              $('.error-msgbox').css('display','block').html('Statement to date is less than statement from date.');
                                                          } else{

                                                              window.location.href='index.php?do=trastatusmgnt&id=<?php echo $_GET['id']; ?>
&stmt_from='+fromDate+'&stmt_to='+datasplited;
                                                          }

                                                          for(i = 0; i <=2; i++){
                                                              $( "#"+dates[i] ).val(selDate[i]);
                                                          }
                                                      }
                                                  });
                                              });
                                          </script></td>
                                        <td align="right"><strong>Sell Rate (%) :</strong></td>
                                        <td ><?php echo ((is_array($_tmp=$this->_tpl_vars['rate']['1'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 3) : smarty_modifier_number_format($_tmp, 3)); ?>
 <?php if ($this->_tpl_vars['rate']['1'] != ''): ?>%<?php endif; ?></td>
                                        <td valign="top" align="right" colspan="2"><a href="index.php?do=addtransaction&type=3"><strong class="Clstr_hints" style="font-size:11px;">Submit a Remittance Notice</strong></a>
                                        </td>
                                      </tr>
                                      <tr class="row1">
                                          <td align="right"><strong>Reserve Due :</strong></td>
                                          <td id="reserveDue" align="left"><?php echo ((is_array($_tmp=$this->_tpl_vars['statement']['stat']['reserveDue'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
                                    <td align="right"><strong>Purchase Payment :</strong></td>
                                    <td>
                                        <?php if ($this->_tpl_vars['debtor']['purchase_price'] == 0): ?>
                                            <?php echo ((is_array($_tmp=$this->_tpl_vars['rate']['6'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
 <?php if ($this->_tpl_vars['rate']['6'] != ''): ?>%<?php endif; ?>
                                        <?php else: ?>
                                            <?php echo ((is_array($_tmp=$this->_tpl_vars['debtor']['purchase_price'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
 <?php if ($this->_tpl_vars['debtor']['purchase_price'] != ''): ?>%<?php endif; ?>
                                        <?php endif; ?>
                                    </td>
                                    <td colspan="2" align="right"><a href="javascript:void(0);" id="printStmt" ><strong class="Clstr_hints"   style="font-size:11px;">Print Statement</strong> (as&nbsp;shown&nbsp;below)
                                  </a>

                                    <script typ="text/javascript">
                                    $(function(){
                                      $('#printStmt').on('click',function(){

                                        var fromDate = '<?php echo $_GET['stmt_from']; ?>
';
                                        var toDate = '<?php echo $_GET['stmt_to']; ?>
';

                                        if (fromDate!='' && toDate!='')
                                        {
                                            var url ='index.php?do=tradeprint&id=<?php echo $_GET['id']; ?>
&stmt_from='+fromDate+'&stmt_to='+toDate+'';
                                        }
                                        else
                                        {
                                            var url ='index.php?do=tradeprint&id=<?php echo $_GET['id']; ?>
';
                                        }

                                        mywins = window.open(url,"mywins","width=1060,height=800,scrollbars=yes");
                                        mywins.focus();
                                      });

                                    });
                                    </script>


                                    </td>
                                  </tr>
                                  <tr class="row1">
                                    <td align="right"></td>
                                    <td align="left"></td>
                                    <td valign="bottom" align="right"><strong>Closing Position (<?php echo $this->_tpl_vars['debtor']['currency_code']; ?>
) : </strong></td>
                                    <td id="Closing_Position" align="left"><?php echo ((is_array($_tmp=$this->_tpl_vars['statement']['stat']['Closing_Position'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
                                    <td align="right"><strong>Trailing Balance (<?php echo $this->_tpl_vars['debtor']['currency_code']; ?>
) : </strong></td>
                                    <td align="left"><?php echo ((is_array($_tmp=$this->_tpl_vars['statement']['stat']['balances']['trailing_balance'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
                                  </tr>
                          </table>
                          <?php if (! empty ( $this->_tpl_vars['result'] )): ?>
                          <div class="success-msgbox">
                            <?php echo $this->_tpl_vars['result']; ?>

                          </div>
                          <?php endif; ?>
                          <table cellpadding="0" cellspacing="0" border="0" width="100%" id="listDebtor" class="table table-hover table-striped table-responsive">
                            <tr>
                              <td valign="top" align="center" colspan="5" class="inves_top1" style="border-right:3px solid #FFF;">Trade Details</td>
                              <td valign="top" align="center" colspan="2" class="inves_top1" style="border-right:3px solid #FFF;">ETR Details</td>
                              <td valign="top" align="center" colspan="3" class="inves_top1">Reserve Details</td>
                            </tr>
                                <tr class="grays_bg4">
                                  <td width="9%" valign="top" align="center"><b>Traded Date</b> </td>
                                  <td width="9%" valign="top" align="center"><b>Issued</b> </td>
                                  <td width="12%" valign="top" align="left"><b>Trade ID</b></td>
                                  <td width="16%" valign="top" align="left"><b>Ref.</b></td>
                                  <td width="10%" valign="top" align="left" style="border-right:3px solid #FFF;"><b>Value</b></td>
                                  <td width="9%" valign="top" align="center"><b>Expected</b></td>
                                  <td width="11%" valign="top" align="left" style="border-right:3px solid #FFF;"><b>Balance</b></td>
                                  <td width="11%" valign="top" align="center"><b>Purchased</b></td>
                                  <td width="10%" valign="top" align="center"><b>Reserve</b></td> 
                                  <td width="" valign="top" align="center"><b>Balance</b></td>
                                </tr>
                                <tbody>
                                    <?php if ($this->_tpl_vars['old_balance']): ?>
                                    <tr>
                                        <td colspan="4" align="right">Balance from Previous period :</td>
                                        <td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['old_balance']['value'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
                                        <td></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>
                                        <td colspan="2"></td>
                                        <td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['old_balance']['reserve_balance'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
                                    </tr>
                                    <?php if ($this->_tpl_vars['delayed_reserves']['invoices'][$this->_tpl_vars['debtor']['currency_id']]): ?>
                                    <tr>
                                        <td colspan="4" align="right">Delayed Settlement Reserve Reduction :</td>
                                        <td colspan="5"></td>
                                        <td align="right">
                                            <nobr>
                                                - <?php echo ((is_array($_tmp=$this->_tpl_vars['delayed_reserves']['summary'][$this->_tpl_vars['debtor']['currency_id']])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>

                                                <i class="glyphicon glyphicon-th-list" style="cursor: pointer" onclick="showDelayedReserves();return false;"></i>
                                            </nobr>
                                        </td>
                                    </tr>
                                    <?php endif; ?>
                                    <?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['item']):
?>
                                    <tr>
                                        <td valign="top" align="center" nowrap><?php echo $this->_tpl_vars['item']['traded_date']; ?>
</td>
                                        <td valign="top" align="center" nowrap><?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 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']; ?>

                                            <?php if ($this->_tpl_vars['item']['orpa_id']): ?>
                                            <a target="_blank" title="b-ETR" style="cursor: pointer;" href="?do=oetr_report&orpa_id=<?php echo $this->_tpl_vars['item']['orpa_id']; ?>
">
                                                <i class="glyphicon glyphicon-hdd"></i>
                                            </a>
                                            <?php endif; ?>
                                        </td>
                                        <td valign="top" align="right" style="border-right:3px solid #FFF;">
                                            <?php if ($this->_tpl_vars['item']['value'] != ''): ?>
                                            <?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)); ?>

                                            <?php endif; ?>
                                        </td>
                                        <td valign="top" align="center"><?php echo $this->_tpl_vars['item']['expected_date']; ?>
</td>
                                        <td valign="top" align="right" style="border-right:3px solid #FFF;"><?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>
                                        <td valign="top" align="right"><?php echo $this->_tpl_vars['item']['purchase_payment']; ?>
</td>
                                        <td valign="top" align="right">
                                            <?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 endif; ?>
                                        </td>
                                        <td valign="top" align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['item']['reserve_balance'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
                                    </tr>
                                    <?php endforeach; endif; unset($_from); ?>
                                </tbody>
                                <tfoot>
                                    <tr>
                                        <th colspan="5"></th>
                                        <th valign="top" align="left">Balance</th>
                                        <th valign="top" align="right" style="text-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)); ?>

                                        </th>
                                        <th valign="top" align="right" style="text-align: right;"><?php echo ((is_array($_tmp=$this->_tpl_vars['statement']['stat']['purchased'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</th>
                                        <th valign="top" align="right" style="text-align: right;">
                                            <?php echo ((is_array($_tmp=$this->_tpl_vars['item']['reserve_balance'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>

                                        </th>
                                        <th valign="top" align="right" style="text-align: right;">
                                            <?php echo ((is_array($_tmp=$this->_tpl_vars['item']['reserve_balance'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>

                                        </th>
                                    </tr>
                                    <?php if ($this->_tpl_vars['delayed_reserves']['invoices'][$this->_tpl_vars['debtor']['currency_id']]): ?>
                                    <tr>
                                        <td>
                                            <div class="delayed_reserves" id="delayed_reserves_<?php echo $this->_tpl_vars['country_id']; ?>
">
                                                <table class="table table-hover table-striped table-responsive" width="100%" cellspacing="0" cellpadding="0" border="0">
                                                    <tr class="grays_bg4">
                                                        <td>Debtor ID</td>
                                                        <td>Debtor Name</td>
                                                        <td>Trade ID</td>
                                                        <td>Invoice Ref.</td>
                                                        <td>Ccy</td>
                                                        <td>Face Value</td>
                                                        <td>At Traded Date</td>
                                                        <td>At <?php echo $this->_tpl_vars['before_from_date']; ?>
</td>
                                                        <td>At <?php echo $_GET['stmt_to']; ?>
</td>
                                                        <td>Period Reduction</td>
                                                    </tr>
                                                    <?php $_from = $this->_tpl_vars['delayed_reserves']['invoices'][$this->_tpl_vars['debtor']['currency_id']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['invoice']):
?>
                                                    <tr>
                                                        <td><?php echo $this->_tpl_vars['invoice']['debtor_reference_id']; ?>
</td>
                                                        <td><?php echo $this->_tpl_vars['invoice']['debtor_name']; ?>
</td>
                                                        <td><?php echo $this->_tpl_vars['invoice']['trade_reference_id']; ?>
</td>
                                                        <td><?php echo $this->_tpl_vars['invoice']['invoice_no']; ?>
</td>
                                                        <td><?php echo $this->_tpl_vars['debtors']['currency']['currency_code']; ?>
</td>
                                                        <td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['invoice']['face_value'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
                                                        <td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['invoice']['traded_reserve'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
                                                        <td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['invoice']['from_reduction'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
                                                        <td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['invoice']['to_reduction'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
                                                        <td align="right"><?php echo ((is_array($_tmp=$this->_tpl_vars['invoice']['reduction'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</td>
                                                    </tr>
                                                    <?php endforeach; endif; unset($_from); ?>
                                                    <tr>
                                                        <td colspan="9" align="right"><b>Total Period Reduction :</b></td>
                                                        <td align="right"><b><?php echo ((is_array($_tmp=$this->_tpl_vars['delayed_reserves']['summary'][$this->_tpl_vars['debtor']['currency_id']])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : smarty_modifier_number_format($_tmp, 2)); ?>
</b></td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </td>
                                    </tr>
                                    <?php endif; ?>
                                </tfoot>
                              </table>
                            </td>
                          </tr>
                        </table></td>
                      </tr>
                    </tbody>
                  </table></td>
                </tr>
              </tbody>
            </table></td>
          </tr>
          <tr>
            <td align="left" valign="top">&nbsp;</td>
          </tr>
        </tbody>
      </table>
      <style>
      #listDebtor td{
        padding:5px;
        font-size:11px;
      }
      #listDebtor td b{
       font-size:11px;
     }

     .row1 .row2 b a{

      color: blue;
    }
	
	.clsoverride .row1 td{
	padding:5px 3px !important;	
	line-height: 15px !important;	
	
}
.clsoverride .row1 td img{
vertical-align: bottom;
}
    .row1 td {
   
    padding: 5px 3px;
}
* {
    color: #000000;
    font-family: Verdana,Geneva,sans-serif;
    font-size: 11px;
    margin: 0;
}

.about_c > table{border-spacing: 5px;}

.delayed_reserves {
  display: none
}

.ui-widget-overlay {
  position: fixed
}

.ui-dialog-titlebar-close .ui-button-text {
  display: none !important;
}

.ui-state-default .ui-icon {
  background-image: url(images/ui-icons_ffffff_256x240.png) !important;
  background-position: -98px -130px;
}
</style>
<script>
    $(function () {
        $(".delayed_reserves").dialog({
            autoOpen: false,
            width: 900,
            height: 600,
            modal: true,
            title: 'Reserve Reduction Summary',
            open: function () {

            }
        });
    });

    function showDelayedReserves() {
        $('.delayed_reserves').dialog('open');
    }
</script>
    <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>