<?php include 'header.php';?>
<style type="text/css">
<!--
.style1 {color: #FF0000}
--> 
</style>

        <div class="content-page">
            <div class="content">
                <div class="container">
					
					<div class="row">
                        <div class="col-md-12">
                            <div class="panel panel-primary">
                                <div class="panel-heading">
                                    <h3 class="panel-title">Report Debit Note</h3></div>
                                <div class="panel-body">
                                    <div class="row">
                                        <div class="col-md-12 col-sm-12 col-xs-12">
                                            <table id="datatable" class="table table-striped table-bordered">
                                                <thead>
                                                    <tr>
                                                        <th>#</th>
														<th>Customer Name</th>
														<th>Debite Note</th>
														<th>Date</th>
														<th>GST</th>
<th>Type</th>
												
                                                    </tr>
                                                </thead>
                                                <tbody>
												<?php
												$i=1;
												
												 $queryls = "select * from debit_main ORDER BY debit_no Desc";
												
												//echo $queryls;
		                 						 $resultls = mysqli_query($conn,$queryls);	
													  while($row=mysqli_fetch_array($resultls))
	                                              	{
													$debit_no =  $row['debit_no'];

													$customer_name = $row['customer_name'];
													$debit_no =  $row['debit_no'];

$debit_date =  $row['debit_date'];
$GST_Btype= $row['GST_Btype'];
$customer_id= $row['customer_id'];
$type= $row['type'];

$debit_main_id= $row['debit_main_id'];

													  ?>
                                                    <tr>
               
			   <td><?php echo $i;?></td>
														 <td><?php echo $customer_name?></td>
														 <td><a href="debit_note.php?customer_id=<? echo $customer_id;?>&&debit_no=<?php echo $debit_no;?>&&debit_main_id=<?php echo $debit_main_id;?>"><?php echo $debit_no?></a></td>
														<td><?php echo $debit_date?></td>
<td><?php echo $GST_Btype;?></td>
<td><?php echo $type;?></td>

                                                    </tr><?php $i++; }?>
                                                </tbody>
                                            </table>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
					
					
					
					<!--- View ends --------------->
					
					
					
					
                </div>
            </div>
<?php include 'footer_table.php';?>

