

<!--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;

}

</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 text-center">





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

  

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

</div><!--row-->  







<div style="margin-bottom:15px;" class="row">



<div class="col-xs-12 pull-left">



<h4 style="margin-top:10px;">Report : Raw Material Stock Report</h4>



</div>

</div>          





<div class="table-responsive">





<table class="table-bordered " style='width:100%; font-size:9px' >

<thead>

<tr class="report_view_th">


                                    <th>Material Code</th>
                                    <th>Material Name</th>
                                    <th>Category</th>
                                    <th>Sub Category</th>
                                    <th>Brand</th>
                                   <th >UOM</th>
								 <th >Cost</th>
								 <th>Stock</th>
								  <th >Value</th>
									
                                    
                            


</tr>

</thead>

<tbody>

 <?php 

 $tmpcount=0;

  foreach ($list as $row)

 {

	 $tmpcount++;


 ?>  

<tr>

<!--<td style="text-align:right; width:40px; vertical-align:middle;"><?php echo sprintf("%04d",$tmpcount); ?></td>-->

<td style="vertical-align:middle;">

 <?php echo $row['product_mat_code']; ?></td>

<td><?php echo $row['product_mat_name']; ?></td>

<td><?php echo $row['cat_name']; ?></td>

<td><?php echo $row['sub_cat_name']; ?></td>

<td><?php echo $row['brand_name']; ?></td>

<td><?php echo $row['unit_name']; ?></td>
<td><?php echo $row['product_mat_cost']; ?></td>
<td><?php echo $row['stock']; ?></td>
<td><?php echo number_format( $row['value'], 2, '.', ','); ?></td>
</tr>

<?php }

	?>



</tbody>

<tfoot>



</tfoot>

</table>



</div>









<div class="row">

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

</div>

<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-->
<script>
    window.print();
</script>


</body>



