<?php include 'header1f.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 credit 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>Credit Note</th>
														<th>Date</th>
														<th>GST</th>
<th>Type</th>
												
                                                    </tr>
                                                </thead>
                                                <tbody>
												<?php
												$i=1;
												
												 $queryls = "select * from credit_main ORDER BY credit_no Desc";
												
												//echo $queryls;
		                 						 $resultls = mysql_query($queryls,$conn);	
													  while($row=mysql_fetch_array($resultls))
	                                              	{
													$credit_no =  $row['credit_no'];

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

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

$credit_main_id= $row['credit_main_id'];

													  ?>
                                                    <tr>
               
			   
			   <td><?php echo $i;?></td>
														 <td><?php echo $customer_name?></td>
														 <td><a href="credit_direct_note.php?customer_id=<? echo $customer_id;?>&&credit_no=<?php echo $credit_no;?>&&credit_main_id=<?php echo $credit_main_id;?>"><?php echo $credit_no?></a></td>
														<td><?php echo $credit_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 'footer1a.php';?>

