<?php
@session_start();
@ob_start();
include "header.php";
?>

<!-- Page wrapper  -->
        <div class="page-wrapper">
           
            <!-- Container fluid  -->
            <div class="container-fluid">
                <!-- Start Page Content -->
                <div class="row">
                    <div class="col-12">
                        <div class="card">
                            <div class="card-body">
							
							<h3>Purchase return</h3>
	 
                              
                                <div class="table-responsive m-t-40">
    
<table id="example23" class="display nowrap table table-hover table-striped table-bordered" cellspacing="0" width="100%"> <thead>
  <tr>
    <th><strong>Purchase Return No. </strong></th>
    
	 <th ><strong>Purchase Order No </strong></th>
     <th><strong>Supplier Name </strong></th>
     <th><strong>Return  Date</strong></th>
	 <th><strong>View</strong></th>
	 <th ><strong>Debit Note</strong></th>
	 </tr>
  </thead>
  <tbody>
  <?php 
    $q = "SELECT * FROM view_purchasereturn_supplier where session_login_id = '".$_SESSION['login_id']."' order by id desc";
	 $query = mysql_query($q);
  while($row=mysql_fetch_array($query)){  
     
	
				
  ?>
  <tr>
    <td><?php echo $row["return_no"];?></td>
    <td><?php echo $row["order_no"];?></td>
    <td><?php echo $row["supplier_name"];?></td>
	 <td><?php echo $objIms->IntToDate($row["ret_date"]);?></td>
   <td style="width:2px" > <a href="purchasereturn_view.php?uid=<?php echo md5($row["id"]);?>" class="btn btn-primary">View</a></td>
   <td style="width:2px" > <a href="debitnote.php?uid=<?php echo md5($row["id"]);?>" class="btn btn-success">Note</a></td>
   </tr>

	<?php }?>
	 </tbody>
</table>
</div>
                        </div>
                    </div>
                </div>
                <!-- End PAge Content -->
            </div>
            <!-- End Container fluid  -->
<?php include 'footer.php' ?>
 <script src="../js/lib/datatables/datatables.min.js"></script>
    <script src="../js/lib/datatables/cdn.datatables.net/buttons/1.2.2/js/dataTables.buttons.min.js"></script>
    <script src="../js/lib/datatables/cdn.datatables.net/buttons/1.2.2/js/buttons.flash.min.js"></script>
    <script src="../js/lib/datatables/cdnjs.cloudflare.com/ajax/libs/jszip/2.5.0/jszip.min.js"></script>
    <script src="../js/lib/datatables/cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/pdfmake.min.js"></script>
    <script src="../js/lib/datatables/cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/vfs_fonts.js"></script>
    <script src="../js/lib/datatables/cdn.datatables.net/buttons/1.2.2/js/buttons.html5.min.js"></script>
    <script src="../js/lib/datatables/cdn.datatables.net/buttons/1.2.2/js/buttons.print.min.js"></script>
    <script src="../js/lib/datatables/datatables-init.js"></script>		