Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
ynormeco
/
.trash
/
yinvoice
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/ynormeco/.trash/yinvoice/payment_invoice.php
<?php include "connection.php"; $connect=connect(); include "backend/digit-word.php"; //$row=$_GET['erow']; $client=$_GET['client']; $invoiceno=$_GET['invoice']; $select=mysqli_query($connect,"select * from `clientdata` where `clientid`='$client' "); $selpurchase=mysqli_query($connect,"select * from `invoice` where `clientid`='$client' and `invoiceno`='$invoiceno' "); if($row1=mysqli_fetch_array($selpurchase)) { $category=$row1['category']; $amt=$row1['amount']; $invoicedate=$row1['idate']; $qty=$row1['qty']; $discount=$row1['discount']; } if($row02=mysqli_fetch_array($select)) { $name=$row02['name']; $email=$row02['email']; $address=$row02['address']; $contact=$row02['contact']; } //$netamt=$preamt-$amt; $totalamt=$amt-$discount; $sql2=mysqli_query($connect,"select * from clientpurchase where `clientid`='$client' and `status`='Pending' "); $total=0; while($row01=mysqli_fetch_array($sql2)) { $total=$total+$row01['amount']; } $sql03=mysqli_query($connect,"select * from invoice where `clientid`='$client' and `status`='Paid' "); $totalpaid=0; while($row03=mysqli_fetch_array($sql03)) { $totalpaid=$totalpaid+$row03['amount']; } $prevbal=$total-$totalpaid+$amt; $netbal=$prevbal-$amt; ?> <html> <head> <title></title> </head> <body style='font-size:10px; font-family:Arial, Helvetica, sans-serif;background-repeat:no-repeat;background-position:center;' onLoad="window.print();return false" background="images/water.png" > <p align="center" style="font-size:17px;" ><b>INVOICE</b></p> <table border="1px" style="width:100%;height:100%;border-collapse:collapse;line-height:1.4"> <tr > <td rowspan="2" colspan="2" width="50%" style="padding:9px"> <b>Ynorme Solution Pvt. Ltd.</b><br> Plot No 52, Mahalakshmi Nagar-1, Behind Bakade Celebration,Manewada, Nagpur, Maharashtra - 440024<br> Contact: +91 9579843385<br> E-mail: ynorme@gmail.com<br> Website: www.ynorme.com </td> <td colspan='4' align="center" height="95px"> <img src="images/logo.png" align="center" width="250px"> </td> </tr> <tr height="70px"> <td colspan="2" width="25%" style="padding-left:10px;"> <?php echo "<b>Invoice No.:</b><br> ".$invoiceno." "; ?> </td> <td colspan="2" style="padding-left:10px"> <?php echo "<b>Dated:</b><br> ".$invoicedate."" ; ?> </td> </tr> <tr > <?php echo "<td rowspan='2' colspan='2' style='padding-left:10px'>To,<br>"; echo "<b>".$name."</b><br>"; echo "".$address."<br>"; echo "Contact:".$contact."<br>"; echo "Email:".$email."<br>"; echo "</td>"; echo "<td colspan='4' height='60' style='padding-left:10px'>Mode of Payment : <b></b><br> Payment Details: </td>"; ?> </tr> <tr> <td colspan="4" style="padding-left:10px" height="90px" >Terms of Service</td> </tr> <tr > <th width="8%">Sr No.</th> <th width="42%">Description</th> <th>Quantity</th> <th>Rate</th> <th>Discount</th> <th>Amount</th> </tr> <tr height="180px" align="center"> <td>1</td> <td><?php echo $category ; ?></td> <td><?php echo $qty; ?></td> <td><?php echo $amt; ?></td> <td><?php echo $discount; ?></td> <td align="right" style="padding-right:10px"><?php echo $totalamt; ?></td> </tr> <tr> <td></td> <td align="right" style="padding-right:10px"><b>Total<b></td> <td></td> <td></td> <td></td> <td align="right" style="padding-right:10px"> <?php echo $totalamt ; ?> </td> </tr> <tr height="80px"> <td colspan="3" style="padding-left:10px">Amount Chargeable (in words)<br> <b style="text-transform: uppercase;"><?php echo "INR". convertNum($totalamt); ?><b> </td> <td colspan="3" style="padding-right:10px;border-left:none" align="right">E. & O.E<br></td> </tr> <tr > <td colspan="6" style="padding:10px" > <b>Declaration</b><br> We declare that this invoice shows the actual price of the service described and all particulars are true and correct. </td> </tr> <tr> <td colspan="3" style="padding:9px"> <b>Terms and Conditions</b>:-<br><span style="font-size:15px"> 1) Please retain original invoice for future reference.<br> 2) If any cancelation of service payment will be not refundable.<br> 3) All disputes shall be subject to jurisdiction of competent courts in Nagpur.<br> 4) For any queries, please call customer support number +91 957 9843 385.</span> </td> <td colspan="3"> <table border="1px" width="85%" align="center" style="border-collapse:collapse;"> <tr > <td style="padding:5px;width:63%">Prev. Balance:</td> <td style="padding:5px;width:37%" align="right"> <?php echo $prevbal; ?> </td><br> </tr> <tr> <td style="padding:5px">Invoice Amount:</td> <td style="padding:5px" align="right"> <?php echo $totalamt; ?> </td><br> </tr> <tr> <td style="padding:5px">Net Balance:</td> <td style="padding:5px" align="right"> <?php echo $netbal; ?> </td> </tr> </table> </td> </tr> </table> <p align="center" style="font-size:15px;" >This is a Computer Generated Invoice<p> </body> </html>