
<!--onLoad="window.print()"-->
<body >
	<?php $this->load->view("common/header"); ?>
	<style type="text/css">
.report_view_th{
	color:#000 !important;
	font-size:12px;	
}

.table-responsive td{
	font-size:11px;
	background-color:#fff !important;	
}
h4{
	font-size:13px;
}
body{
	background-color:#fff !important;
}
.print_header_tbl{
	font-size:13px;
	border:1px;	
}
.print_header_tbl td{
	padding-bottom:5px;
	border:1px;		
}

.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {
  border-top: 1px solid #ddd;
  line-height: 1;
  padding: 3px;
  vertical-align: top;
}
</style>
		

<div class="">

         

         
            <div class="modal-body">

 <div style="top:2px;" class="panel-tools open">
<button data-toggle="dropdown" class="btn btn-blue dropdown-toggle" onClick="window.print()">
<i class="fa fa-print"></i>
</button>
</div>
<div class="row">
<div class="col-xs-12">

<?php //$this->load->view("common/report_header"); ?>

 
 

   </div><!--col-xs-12-->
</div><!--row--> 
<div class="row">
<div class="col-xs-12 text-center">

 <h4 class="text-bold" style="text-decoration:underline">Multiple Payment</h4>

  </div><!--col-xs-12-->
</div><!--row--> 
 
<br>


<div style="margin-bottom:15px;" class="row">
<?php //print_r($exp_details);?>
<div class="col-xs-4 pull-left">
<div class="table-responsive">
<table class="table table-bordered table-hover table-striped print-table order-table">
  <tr>
    <td>Ref. No. :</td>
    <td><?php echo $mp_details->smp_no ?> </td>
  </tr>
  </table>
</div>
</div>

<div class="col-xs-4 pull-right">
<div class="table-responsive">
<table class="table table-bordered table-hover table-striped print-table order-table">
  <tr>
    <td>Customer Name :</td>
    <td>  <?php echo $mp_details->cus_name ?></td>
  </tr>
 
   
</table>
</div>
</div>
</div>          


<div class="table-responsive">


<table class="table table-bordered table-hover table-striped print-table order-table">
<thead>
<tr class="report_view_th">
<th style="width:50px !important" class="text-center"> No</th>
<th class="text-center col-sm-4 ">Invoice No</th>
<th class="text-center col-sm-1">Amount</th>

</tr>
</thead>
<tbody>
 <?php 
// print_r($mp_itm_list);
 $tmpcount=0;
 $tt_grand_tot=0;
  $tt_paid=0;
   $tt_balance=0;
  foreach ($mp_itm_list as $row)
 {
	 $tmpcount++;
	 /*
	 $total_paid_amount=$row['total_paid_amount'];
	 if (empty($total_paid_amount)) {
		  $pay_st = 'Pending';
		}else{
		  if ($total_paid_amount >= $row['po_total']) {
			$pay_st = 'Paid';
		  }else{
			$pay_st = 'Partial';
		  }
		}
		$tt_grand_tot=$tt_grand_tot+$row['po_total'];
		$tt_paid=$tt_paid+$total_paid_amount;
		$tt_balance=$tt_balance+($row['po_total']-$total_paid_amount);
		*/
 ?>  
<tr>
<td style="text-align:right; width:40px; vertical-align:middle;"><?php echo sprintf("%1d",$tmpcount); ?></td>
<td style="vertical-align:middle;">
  <?php echo $row->sale_reference_no; //echo display_date_time_format($row['po_datetime']); ?> </td>
<td class="text-right"><?php echo $row->sale_pymnt_amount;?>  <?php //echo number_format($row['po_total']-$total_paid_amount, 2, '.', ','); ?></td>
</tr>

<?php }?>
<tr>
  <td colspan="2" style="text-align:right; width:40px; vertical-align:middle;">Total</td>
  <td class="text-right"><?php echo number_format($mp_details->smp_amount, 2, '.', ','); ?>
  </td>
</tr>
</tbody>
<tfoot>
</tfoot>
</table>
</div>



<div class="row">
<br>
<br>

<div class="col-xs-4">

<br/>
Prepared by <br/><br/>
...........................<br>
<?php  
$ref_id = new User_Model();
?>
<?php 
if($mp_details->user_id){
$data['user_details']=$ref_id->get_user_info($mp_details->user_id);
//echo $data['user_details']['user_first_name'].' '.$data['user_details']['user_last_name'];
//echo "<br/>". $data['user_details']['user_designation'];

}?>

</div>

<div class="col-xs-4"><br/>Authorized by<br/>

<br/>...........................
 <br>
<?php  
$ref_id = new User_Model();
?>

<br>

</div>



</div>


<!--<div class="row">

<div class="col-xs-5 pull-right">
<div class="well-sm">
<p>
Created by:  <?php echo $this->session->userdata('ss_user_first_name'); ?> (<?php echo $this->session->userdata('ss_user_group_name'); ?>)</p> <p>
Date: <?php echo display_date_time_format(date("Y-m-d H:i:s")); ?> </p>
</div>
</div>-->
</div>

             
                 <!--/.col-md-12-->

</body>

