

<!--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">PETTY CASH</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>Supplier :</td>

    <td><?php echo $exp_details->exp_supp_name ?> </td>

  </tr>

  <tr>

    <td>	Product Type :</td>

    <td><?php //echo $exp_details->name ?></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>Voucher No :</td>

    <td>  <?php echo $exp_details->exp_voucher_no ?></td>

  </tr>

  <tr>

    <td>Voucher Date: </td>

    <td><?php echo $exp_details->exp_datetime ?></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">Item No</th>

<th class="text-center col-sm-4 ">Item Name</th>

<th class="col-sm-1 text-center">Qty</th>

<th class="col-sm-1 text-center">Unit</th>

<th class="text-center" style="width:50px !important">Rate</th>

<th class="col-sm-1 text-center">Discount</th>

<th class="text-center col-sm-1">Amount</th>



</tr>

</thead>

<tbody>

 <?php 

// print_r($expitm_list);

 $tmpcount=0;

 $tt_grand_tot=0;

  $tt_paid=0;

   $tt_balance=0;

  foreach ($expitm_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->product_name; //echo display_date_time_format($row['po_datetime']); ?> </td>

<td><?php echo $row->expitm_qty;?><?php //echo $row['po_reference_no']; ?></td>

<td><?php echo $row->unit_name;?><?php //echo $row['cus_name']; ?></td>

<td><?php echo $row->product_cost;?> <?php //echo $pay_st; ?></td>



<td class="text-right"><?php echo $row->expitm_dis_val;?>  (<?php echo $row->expitm_dis;?>)<?php //echo number_format($row['po_total'], 2, '.', ','); ?></td>

<td class="text-right"><?php echo $row->sub_total_item;?>  <?php //echo number_format($row['po_total']-$total_paid_amount, 2, '.', ','); ?></td>

</tr>



<?php }?>

<tr>

  <td colspan="6" style="text-align:right; width:40px; vertical-align:middle;">Total</td>

  <td class="text-right"><?php echo number_format($exp_details->exp_total, 2, '.', ','); ?>

  </td>

</tr>

<tr>

  <td colspan="6" style="text-align:right; width:40px; vertical-align:middle;">Discount</td>

  <td class="text-right">(<?php echo $exp_details->exp_discount ?>)

  <?php echo number_format($exp_details->exp_discount_amt, 2, '.', ','); ?>

  </td>

</tr>

<tr>

  <td colspan="6" style="text-align:right; width:40px; vertical-align:middle;">VAT</td>

  <td class="text-right">(<?php //echo $exp_details->po_vat ?>)

  <?php //echo number_format($exp_details->po_vat_val, 2, '.', ','); ?>

  </td>

</tr>

<tr>

  <td colspan="6" style="text-align:right; width:40px; vertical-align:middle;">Net Total</td>

  <td class="text-right"><?php echo number_format($exp_details->exp_net_total, 2, '.', ','); ?></td>

</tr>

</tbody>

<tfoot>

</tfoot>

</table>

</div>







<div class="row">

<br>

<br>



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



 ...........................

<br/><br>



Prepared by <br>



</div>



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

...........................

<br/><br>



Authorized by <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>



