ok
Direktori : /home2/selectio/public_html/vijay-gases/ |
Current File : /home2/selectio/public_html/vijay-gases/tax-invoice.php |
<?php include "config/config.php"; $ids = $_GET['id']; $statement = $pdo->prepare("SELECT tbl_purchase.*,tbl_location.name,tbl_location.address,tbl_location.factory_address,tbl_customer.customer_name,tbl_customer.gst_no,tbl_customer.c_name FROM `tbl_purchase` INNER JOIN tbl_location ON tbl_purchase.location_id=tbl_location.id INNER JOIN tbl_customer ON tbl_purchase.supplier=tbl_customer.id where tbl_purchase.id=".$ids); $statement->execute(); $emp_data = $statement->fetchAll(PDO::FETCH_ASSOC); $totalData = $statement->rowCount(); $statement_1 = $pdo->prepare("SELECT tbl_purchase_item.*,tbl_product.cylinder_no as pro_cylinder_no,tbl_gas.gas_name,COUNT(tbl_gas.id) as gas_count,tbl_product.sku,tbl_purchase.total_amount,tbl_purchase.before_total_amount FROM `tbl_purchase_item` INNER JOIN tbl_product ON tbl_purchase_item.product_id=tbl_product.id INNER JOIN tbl_gas ON tbl_product.product_name=tbl_gas.id INNER JOIN tbl_purchase ON tbl_purchase.id=tbl_purchase_item.purchase_id WHERE tbl_purchase_item.purchase_id=".$ids." GROUP BY tbl_gas.gas_name"); $statement_1->execute(); $purchase_product_data = $statement_1->fetchAll(PDO::FETCH_ASSOC); $totalData_purchase = $statement_1->rowCount(); ?> <table style="width:100%;border:1px solid black;border-bottom:none;"> <tr> <td style="width:33%;font-size:12px;">GST IN 33AABCV9544Q1ZN</td> <td style="width:33%;text-align:center;font-size:12px;"><b>TAX INVOICE</b></td> <td style="text-align:right;width:33%;font-size:12px;"> <table style="text-align:right;width:100%;"> <tr> <td style="text-align:right;font-size:12px;">PH </td> <td style="text-align:left;font-size:12px;">9150114330</td> </tr> <tr> <td></td> <td style="text-align:left;font-size:12px;">9150114331</td> </tr> </table> </td> </tr> <tr> <td colspan="3" style="text-align:center;font-size:12px;"><?=$emp_data[0]['name']?> (P) LTD</td> </tr> <tr> <td colspan="3" style="text-align:center;font-size:12px;">Factory : SF NO : <?=$emp_data[0]['address']?>.</td> </tr> <tr> <td colspan="3" style="text-align:center;font-size:12px;">Regd.Office : <?=$emp_data[0]['factory_address']?></td> </tr> </table> <table style="width:100%;border:1px solid black;border-top!important:none;border-collapse: collapse;border-bottom:none!important;"> <tr style="border:1px solid black;"> <td style="border:1px solid black;font-size:12px;width:50%;">No. : CR/ : <b><?=$emp_data[0]['id']?></b></td> <td style="border:1px solid black;font-size:12px;width:50%;">State : <b>Tamil Nadu</b></td> </tr> <tr style="border:1px solid black;"> <td style="border:1px solid black;border-bottom:none!important;font-size:12px;">Date Of Issue : <b><?=date('d-m-Y', strtotime($emp_data[0]["purchase_date"]))?></b></td> <td style="border:1px solid black;font-size:12px;">State Code : <b>33</b></td> </tr> <tr> <td colspan="2" style="font-size:10px;"> Mr. / M/s. : <b><?=$emp_data[0]['customer_name']?> .</b> </td> </tr> <tr> <td colspan="2" style="font-size:10px;"> Company Name : <b><?=$emp_data[0]['c_name']?>.</b> </td> </tr> <tr> <td colspan="2" style="font-size:10px;"> Party's TIN No : <b><?=$emp_data[0]['gst_no']?></b> </td> </tr> </table> <table style="width:100%;border:1px solid black;border-top!important:none;border-collapse: collapse;"> <tr> <td style="border:1px solid black;text-align:center;font-size:12px;">Particulars</td> <td style="border:1px solid black;text-align:center;font-size:12px;">HSN / SAC</td> <td style="border:1px solid black;text-align:center;font-size:12px;">UOM</td> <td style="border:1px solid black;text-align:center;font-size:12px;">QTY</td> <td style="border:1px solid black;text-align:center;font-size:12px;" colspan="2">Mt. Cu.</td> <td style="border:1px solid black;text-align:center;font-size:12px;">Rate</td> <td style="border:1px solid black;text-align:center;font-size:12px;">Amouunt</td> </tr> <?php foreach($purchase_product_data as $ress){ ?> <tr> <td style="border:1px solid black;border-bottom:none;border-top:none;text-align:center;font-size:12px;width:25%;"><?=$ress['gas_name']?></td> <td style="border:1px solid black;border-bottom:none;border-top:none;text-align:center;font-size:12px;width:16%;"><?=$ress['sku']?></td> <td style="border:1px solid black;border-bottom:none;border-top:none;text-align:center;font-size:12px;width:10%;"></td> <td style="border:1px solid black;border-bottom:none;border-top:none;text-align:center;font-size:12px;width:7%;"><?=$ress['gas_count']?></td> <td style="border:1px solid black;border-bottom:none;border-top:none;text-align:center;font-size:12px;width:10%;"></td> <td style="border:1px solid black;border-bottom:none;border-top:none;text-align:center;font-size:12px;width:10%;"></td> <td style="border:1px solid black;border-bottom:none;border-top:none;text-align:center;font-size:12px;width:7%;"></td> <td style="border:1px solid black;border-bottom:none;border-top:none;text-align:center;font-size:12px;width:15%;"><?=$ress['before_total_amount']?></td> </tr> <?php } ?> <?php for($i=$totalData_purchase;$i<15;$i++){ ?> <tr> <td style="border:1px solid black;border-bottom:none;border-top:none;text-align:center;font-size:12px;width:25%;"> </td> <td style="border:1px solid black;border-bottom:none;border-top:none;text-align:center;font-size:12px;width:16%;"></td> <td style="border:1px solid black;border-bottom:none;border-top:none;text-align:center;font-size:12px;width:10%;"></td> <td style="border:1px solid black;border-bottom:none;border-top:none;text-align:center;font-size:12px;width:7%;"></td> <td style="border:1px solid black;border-bottom:none;border-top:none;text-align:center;font-size:12px;width:10%;"></td> <td style="border:1px solid black;border-bottom:none;border-top:none;text-align:center;font-size:12px;width:10%;"></td> <td style="border:1px solid black;border-bottom:none;border-top:none;text-align:center;font-size:12px;width:7%;"></td> <td style="border:1px solid black;border-bottom:none;border-top:none;text-align:center;font-size:12px;width:15%;"></td> </tr> <?php } ?> <tr style="min-height:400px!important;"> <td style="border:1px solid black;border-bottom:none;font-size:12px;vertical-align:top;" colspan="2" rowspan="5">Amount In Words :</td> <td style="border:1px solid black;text-align:center;font-size:12px;" colspan="2">SGST <?=$emp_data[0]['gst']/2?> %</td> <td style="border:1px solid black;text-align:center;font-size:12px;" colspan="2"></td> <td style="border:1px solid black;text-align:center;font-size:12px;"></td> <td style="border:1px solid black;none;text-align:center;font-size:12px;"><?=($emp_data[0]['total_amount']-$emp_data[0]['before_total_amount'])/2?></td> </tr> <tr style="min-height:400px!important;"> <td style="border:1px solid black;border-top:none;text-align:center;font-size:12px;" colspan="2">CGST <?=$emp_data[0]['gst']/2?> %</td> <td style="border:1px solid black;border-top:none;text-align:center;font-size:12px;" colspan="2"></td> <td style="border:1px solid black;border-top:none;text-align:center;font-size:12px;"></td> <td style="border:1px solid black;none;border-top:none;text-align:center;font-size:12px;"><?=($emp_data[0]['total_amount']-$emp_data[0]['before_total_amount'])/2?></td> </tr> <tr style="min-height:400px!important;"> <td style="border:1px solid black;border-top:none;text-align:center;font-size:12px;" colspan="2">Total <?=$emp_data[0]['gst']?> %</td> <td style="border:1px solid black;border-top:none;text-align:center;font-size:12px;" colspan="2"></td> <td style="border:1px solid black;border-top:none;text-align:center;font-size:12px;"></td> <td style="border:1px solid black;border-top:none;text-align:center;font-size:12px;"><?=$emp_data[0]['total_amount']-$emp_data[0]['before_total_amount']?></td> </tr> <tr style="min-height:400px!important;"> <td style="border:1px solid black;border-top:none;text-align:center;font-size:12px;" colspan="2">Round Off </td> <td style="border:1px solid black;border-top:none;text-align:center;font-size:12px;" colspan="2"></td> <td style="border:1px solid black;border-top:none;text-align:center;font-size:12px;"></td> <td style="border:1px solid black;border-top:none;text-align:center;font-size:12px;"></td> </tr> <tr style="min-height:400px!important;"> <td style="border:1px solid black;border-top:none;text-align:center;font-size:12px;" colspan="2">Grand Total </td> <td style="border:1px solid black;border-top:none;text-align:center;font-size:12px;" colspan="2"></td> <td style="border:1px solid black;border-top:none;text-align:center;font-size:12px;"></td> <td style="border:1px solid black;border-top:none;text-align:center;font-size:12px;"><?=$emp_data[0]['total_amount']?></td> </tr> </table> <table style="width:100%;border:1px solid black;border-top:none;"> <tr> <td style="font-size:12px;vertical-align:top!important;width:33%;">Received the above Cylinders in good condition</td> <td style="text-align:center;width:33%;"> <table style="width:100%;border-collapse: collapse;border:1px solid black;"> <tr> <td rowspan="2" style="font-size:12px;border:1px solid black;writing-mode: vertical-rl;">VEHICLE NO</td> <td style="font-size:12px;border:1px solid black;max-height:3px;"> TN 54 AV</td> </tr> <tr> <td style="font-size:12px;border:1px solid black;max-height:3px;">6638</td> </tr> </table> </td> <td style="font-size:12px;text-align:center;width:33%;vertical-align:top;">For <b>VIJAY KUMAR GASES (P) LTD.,</b></td> </tr> <tr> <td style="font-size:12px;">Receivers Signature</td> <td style="font-size:12px;"></td> <td style="font-size:12px;text-align:center;">Director / Manager</td> </tr> </table> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" ></script> </script><script type="text/javascript"> $(document).ready(function () { window.print(); setTimeout(window.close, 150); }); </script>