

<!--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 : PACKING DAMAGE SUMMARY FROM <?php echo $from_date;?> TO <?php echo $to_date;?> </h4>



</div>

</div>          





<div class="table-responsive">





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

<thead>

<tr class="report_view_th">


                                    <th>PRODUCT CODE</th>
                                    <th>PRODUCT NAME</th>
                                    <th>DAMAGE QTY</th>
                                    <th>DAMAGE VALUE</th>
                                    <th>PACKING SHORT</th>
                                   <th>LABOR MISTAKE</th>
								 <th >TRANSPORT TO BAKERY</th>
						<!--	<th >OVER MIX</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_code']; ?></td>

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

<td><?php echo number_format( $row['defect_qty'], 2, '.', ','); ?></td>

<td><?php echo number_format( $row['pbi_lost_value'], 2, '.', ','); ?></td>

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

<td><?php echo $row['rs']; ?></td>
<td><?php echo $row['wm']; ?></td>
<!--<td><?php //echo $row['om']; ?></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>



