<? 
session_start();
$brcode=$_SESSION['brcode'];
$user=$_SESSION['user'];
if(strlen($brcode)<=0)
{
 print "<script> alert('Session timed out'); parent.document.location='../ind.php'; </script>";
 return;
}

include("../opendb.php");
include("../test.php");
$invno=$_REQUEST['invno'];
$result=mysqli_query($db,"select * from profinv where invno='$invno' and brcode='$brcode' ");
$row=mysqli_fetch_array($result);

$re=mysqli_query($db,"select * from branch where brcode='$brcode'");
$brow=mysqli_fetch_array($re);

?>
<style>
td,body{font-family:arial;background-color:white;font-size:12}
.first-txt {
            position: absolute;
            top: 917px;
            left: 300px;
        }
.second-txt {
            position: absolute;
            top: 947px;
            left: 300px;
        }        
.third-txt {
            position: absolute;
            top: 947px;
            left: 50px;
        }                
.fourth-txt {
            position: absolute;
            top: 900px;
            left: 410px;
        }                        
</style>
<table width=100%>
<tr><td align=center><span style={letter-spacing:5}><u>  </u></span></TD></TR>


<?
$brname=explode(',',$branch);
?>


</TABLE>


<center>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr><td colspan='3' valign='bottom' align='center' ><h2>PSN AUTOMOBILES PVT. LTD.</h1></td></tr>
    <tr><td width="20%" height="38" align='left'><img src="../images/logo.png" alt="PSN" width="148" height="81" /></td><td width="29%" valign='top' align=center><?print $brow['braddr']?> <?print $brow['brcity']?>
    <br>Email : sales@psnauto.in    Web: www.psnauto.in <br>GST NO : <?echo $brow['gst']?><br>CIN NO : U50300KL 1996PTC010842 <br> Contact No.:0484 4098309 / 9895987000</td><td align=right width="20%" height="38"><img src="../images/eicherlogo.jpg" alt="PSN" width="182" height="51" /></td></tr>
    
    </table>

<TABLE width=100% border=0>
<tr><td width=600 align=left>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Proforma No : <font size='2'><b> <?print $invno?></b></font></td><td width=1500 align=right >Date : <?print datetohtml($row['invdate'])?></td><td width=150></td>
</table>
</center>


<table><tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
<?if($invno==799 || $invno == 800 || $invno == 810|| $invno == 811|| $invno == 812|| $invno == 813 || $invno == 1231 || $invno == 1232){?><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Billed To<?}?>
<?if($invno==1625 ){?><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Shipped to: <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbspTHE MANAGER
MENTOR ACADEMY FOR DESIGN ENTREPRENEURSHIP INNOVATION AND TECHNOLOGY, ETTAPPILLY, MANNATHOOR P.O.,
MUVATTUPUZHA, ERNAKULAM 686667 <br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp Billed To: <?}?>
<?if($invno==1863 ){?><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Permanent Address<?}?>
<?if($invno==131323){?>
    <td colspan='4'>Permanent Address</td></td></tr><tr><td valign='top'>
    &nbsp;&nbsp;&nbsp;<blockquote>
        Registration Address: <br>The Managing Partner, M/S National Trades and Agencies , 833 A, CSEZ ROAD, NEAR DOORDARSAN KENDRA, KAKKANAD, Ernakulam, Kerala, 682037<br>
    GSTIN :32AABFN9977G1ZZ</blockquote>
    </td><td align='right'></td><td>
    The Managing Partner, M/S National Trades and Agencies, NTA Chambers, Hina House, Willingdon Island, Kochi, Ernakulam
    </td></td>
<?}else if($invno==1532){?>
    <td></td></tr><tr><td valign='top'>&nbsp;&nbsp;&nbsp;<blockquote>
    To :<br> Billing Address : <br>  
    M/S Industrial Labour Welfare Association`
Old No. 317, New No. 1062, Avinashi Road, Coimbatore 641018, Tamil Nadu
    <td colspan='4'></td></tr><tr><td valign='top'>
    &nbsp;&nbsp;&nbsp;<blockquote>
    
    Registration Address: <br>VIDYA SAGAR GURUKULAM SCHOOL
PALLOOR PO ,KONDAYOOR DESAMANGALAM (VIA)
THRISSUR 679532<br>
    </blockquote>
    </td><td align='right'></td><td>
    </td></td>
<?}
else if($invno==33298){?>
    <td></td></tr><tr><td valign='top'>&nbsp;&nbsp;&nbsp;<blockquote>
    To :<br> Billing Address : <br>  
    The Manager
    Campion Foundation, Changampuzha Road, Edappally P.O., Ernakulam 682024
    <td colspan='4'></td></tr><tr><td valign='top'>
    &nbsp;&nbsp;&nbsp;<blockquote>
    
    Registration Address: <br>The Manager
    Campion School (A Unit of Campion Foundation)
    Changampuzha Road, Edappally P.O., Ernakulam 682024<br>
    </blockquote>
    </td><td align='right'></td><td>
    </td></td>
<?}else if($invno==1402){?>
    <td></td></tr><tr><td valign='top'>&nbsp;&nbsp;&nbsp;<blockquote>
    To :<br> Billing Address : <br>  
    K. Gowtham
    3/161 Kalungal Thottam, Alluthupalayam, Vadugapalayam P.O., Palladam, Tiruppur 641664 
    <td colspan='4'></td></tr><tr><td valign='top'>
    &nbsp;&nbsp;&nbsp;<blockquote>
    
    Registration Address: <br>
    13/266, Kunnathu House, Cherya, Kongad
    Palakkad 678631<br>
    </blockquote>
    </td><td align='right'></td><td>
    </td></td>
<?}else if($invno==136 || $invno==138){?>
    <td></td></tr><tr><td valign='top'>&nbsp;&nbsp;&nbsp;<blockquote>
    To :<br> Permanent Address: <br>  
    THE MANAGING PARTNER, M/S CLASSIC TECHNOLOGIES, TMC, BADARIYA NAGER, TALIPARAMBA, KANNUR 670141
    <td colspan='4'></td></tr><tr><td valign='top'>
    &nbsp;&nbsp;&nbsp;<blockquote>
    
    Registration Address: <br><br>
    </blockquote>
    </td><td align='right'></td><td>
    </td></td>
<?} else if($invno=='1141'){?>
    <td></td></tr><tr><td valign='top'>&nbsp;&nbsp;&nbsp;<blockquote>
    To :<br> Billing Address : <br>  
    Anpet
    Bishops House, St.Sebastians Cathedral, Matha Kovil Street, Sultanpet, Palakkad 678001
    <td colspan='4'></td></tr><tr><td valign='top'>
    &nbsp;&nbsp;&nbsp;<blockquote>
    
    Registration Address: <br>The Manager, St. Marys Public School, Opp. ITI, Kanjikode West, Palakkad 678623<br>
    </blockquote>
    </td><td align='right'></td><td>
    </td></td>
<?}else if($invno=='2252'){?>
    <td></td></tr><tr><td valign='top'>&nbsp;&nbsp;&nbsp;<blockquote>
    To :<br>Permanent Address : <br>  
    The Managing Partner
    M/S National Food Industries, Kadambukattil House, Rayonpuram P.O, Vallam,,Ernakulam 683543
GSTIN :32AAFFN9222Q1ZW</td>
    <td colspan='4'></td></tr><tr><td valign='top'>
    &nbsp;&nbsp;&nbsp;<blockquote>
    Registration Address: <br>The Managing Partner M/S National Food Industries, Plot No. 47, KINFRA Food ProcessingPart,
Calicut University P.O. Kakkancherry, Malappuram 676635
    </blockquote>
    </td><td align='right'></td><td>
    </td></td>
<?} else
{?>
<?if( $invno == 111726 || $invno == 111727){?>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Billed To: </td></tr>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<? //print $row['cust'];?></td></tr>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;M/S MTS Groups Tours & Travels, Speed Parcel Service(Metro Transport Service), <BR>Door No. 7, Annapoorana Layout, Chinnasawmy Street, Coimbatore,Tamil Nadu 641044</td></tr>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GSTIN :33AMQPT8955R1ZN </td></tr>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Shipped To</td></tr>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mr. Alfred Thomas, 
    Menachery House, Krishibhavan Ollukkara. Mannuthi P.O., Madakkathara, Thrissur 680651
    </td></tr>
    <br>
    </blockquote>
    </td><td align='right'></td><?
}
else if( $invno== '640' ){?>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Bill To Party: </td></tr>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Secretary</td></tr>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Eloor Municipality</td></tr>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Udyog Mandal P.O., Eloor, Ernakulam 683514
 </td></tr>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ship To Party:</td></tr>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The principal, 
    Buds School, Udyog Mandal P.O., Eloor, Ernakulam 683514 



    </td></tr>
    <br>
    </blockquote>
    </td><td align='right'></td><?
}

else if( $invno== 'aa' ){?>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Billed To: </td></tr>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<? //print $row['cust'];?></td></tr>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;M/S MTS Groups Tours & Travels, Speed Parcel Service(Metro Transport Service), <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;                Door No. 7, Annapoorana Layout, Chinnasawmy Street, Coimbatore,Tamil Nadu 641044</td></tr>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GSTIN :33AMQPT8955R1ZN </td></tr>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Shipped To</td></tr>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mr. Alfred Thomas, 
    Menachery House, Near Krishibhavan, Ollukkara, Mannuthi P.O., Madakkathara, Thrissur 680651
    </td></tr>
    <br>
    </blockquote>
    </td><td align='right'></td><?
}
else if($invno== 452 or $invno== 453 or $invno== 1457 ){?>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Permanent Address: </td></tr>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Southern Air Products, Manna, Taliparamba 670141
</td></tr>
    <tr><td><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Registration Address:</td></tr>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;THE MANAGING PARTNER</td></tr>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;M/S SOUTHERN AIR PRODUCTS, 9A/864,5A/863, KANCHIKODE NEW INDUSTRIAL DEV.AREA, KANICHKODE, KANCHIKODE, PALAKKAD 678621</td></tr>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GSTIN :32ABOFS0025L1Z7</td></tr>
    <br>
    </blockquote>
    </td><td align='right'></td><?
}
else if( $invno ==51251679 ){?>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Permanent Address</td></tr>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;M/S Soulmate Logistics, Proprietor, Shinaj P. M, Maname of Permises, Building No. 14/404, Trans Square Building Road, Mavelipuram, Near By Mavelipuram Locality, Trikkakara, Kakkanad, Ernakulam 682030
    GSTIN :32BYPPS0055K1Z5<br></td></tr>
    <tr><td><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Registration Address</td></tr>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;M/S SOULMATE LOGISTICS,,PROPRIETOR  MR. MOHAMMED PUTHENPURA SHINAJ, NEGC COMPLEX, KOHIMA, JAIL ROAD, KOHIMA, NAGALAND 797001</td></tr>
    <br>
    </blockquote>
    </td><td align='right'></td><?
}
else if( $invno == 11331680 ){?>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Permanent Address</td></tr>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MR. MOHAMMED PUTHENPURA SHINAJ
    PROPRIETOR, M/S SOULMATE LOGISTICS, 14/404, TRANS SQUARE BUILDING, MAVELIPURAM, THRIKKAKARA, KAKKANAD 682030
    GSTIN :32BYPPS0055K1Z5<br></td></tr>
   <tr><td><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Registration Address</td></tr>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MR. MOHAMMED PUTHENPURA SHINAJ
    PROPRIETOR, M/S SOULMATE LOGISTICS, NEGC COMPLEX, KOHIMA, JAIL ROAD, KOHIMA, NAGALAND 797001</td></tr>
    <br>
    </blockquote>
    </td><td align='right'></td>
    <?
}
else if( $invno == 3452158 ){?>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Billed To</td></tr>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mr. John P. Surrao
    Managing Director, M/S G and M Transporting Co., S A Road, Ernakulam 682016
    GSTIN :32AAGFGO438G1ZV<br></td></tr>
    <tr><td><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Shipped To</td></tr>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mr. John P. Surrao
    Managing Director, M/S G and M Transporting Co., 11/5, VOC Street, VTC 3rd Floor, Arumbakkam Post, Arumbakkam, Chennai 600106</td></tr>
    <br>
    </blockquote>
    </td><td align='right'></td>
    <?
}


else
{
    ?>
    <?if($invno== 22977){?>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Billed To</td></tr>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<? print $row['cust'];?></td></tr>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Proprietor, M/S K P Building Material Supply, Thottumugham, Aluva, Ernakulam 683105</td></tr>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;GSTIN : <? echo $row['type'] ?></td></tr>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Shipped To</td></tr>
    <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mr. Hussainar K. P
    Keeramkunnu, Thottumugham P.O., Aluva 683105
    </td></tr>
    <br>
    </blockquote>
    </td><td align='right'></td><?
}
else
{
?>
<?if($invno==11255 || $invno==11256){print "<td colspan='4'>Ship to (Registration Address)</td>";?></td><?}?>
    </tr>
    <?if($invno==1402 || $invno==1532)
    {
    }
    else
    {
    ?>
   
    
    <tr><td valign='top'>
    &nbsp;&nbsp;&nbsp;<blockquote>
    <? print $row['cust'].'<br>'.str_replace('-','<br>',$row['addr']);
    print "<br>GSTIN :".$row['type'];?></blockquote>
    </td><td align='right'></td><td><? }
if($invno==11231679  || $invno==12321680)
{print "<td>
    Registration Address : MR. MOHAMMED PUTHENPURA SHINAJ
    PROPRIETOR, M/S SOULMATE LOGISTICS, NEGC COMPLEX, KOHIMA, JAIL ROAD, KOHIMA, NAGALAND 797001</td>";?></td><?}


}}}?>


<?if($invno==1863){?>
<td colspan='4'></td></td></tr><tr><td valign='top'>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Regisration Address<blockquote>Mr. Babu,  Kesavanambi,
Korath Veedu,
16/86,
Thenari-678622
</blockquote>
    </td><td align='right'></td><tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
<?}?>
<?if($invno==799 || $invno == 800 || $invno == 810 || $invno == 811 || $invno == 812 || $invno == 813 || $invno == 1025 || $invno == 1026 || $invno ==1231 || $invno == 1232){?>
<td colspan='4'></td></td></tr><tr><td valign='top'>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Shipped To: 
SHAMYOON P. A, S/O ABDULSHUKKUR
NO,29/3 2ND MAIN ROAD, 5TH CROSS. KPN EXTN
BANGALORE, 
KARNATAKA 560002

    </td><td align='right'></td><tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
<?}?>


</tr></table>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hypothicated to : <?print $row['fin']?>
<center>
<TABLE width=85% border=1 >
<tr><td  align=center>&nbsp;&nbsp;&nbsp;&nbsp;<B>PROFORMA INVOICE</B> </td></TR>
</table>
</center>
<?
if($brcode=='PSN314')
{
    ?>
<TABLE align = center CELLSPACING=1 CELLPADDING=1 BGCOLOR=BLACK width=85% border=1>
<tr align=center><td>SL<br>No.</td><td>Description </td>
<td>Unit Price </td><td>Qty</td><td> Total</td></tr>
<?
$sgstp=$row['taxp']/2;
$cgstp=$row['taxp']/2;
$sgstamt=$row['tax']/2;
$cgstamt=$row['tax']/2;
$tcsaa=round($row['tcs']);
$fcessamt=$row['amt2']*$row['cessp']/100;
$fcessamt=number_format($fcessamt, 2, '.', '');
?>
<tr valign=top><td>1</td><td align=left><?print $row['config']?></td>
<td align=right><?print putcoma($row['unit'])?></td><td align=right><?print $row['qty']?></td>

<td  align=right><?print putcoma(($row['unit']*$row['qty']))?></tr>

<tr valign=top><td>2</td><td align=left>Discount</td>
<td align=right><?print putcoma($row['disc'])?></td><td align=right><?print $row['qty']?></td>

<td  align=right><?print putcoma(($row['disc']*$row['qty']))?></tr>

<tr valign=top><td>3</td><td align=left>Price After Discount</td>
<td align=right><?print putcoma($row['netamt'])?></td><td align=right><?print $row['qty']?></td>

<td  align=right><?print putcoma(($row['netamt']*$row['qty']))?></tr>

<tr valign=top><td>4</td><td align=left>TCS 1%</td>
<td align=right><?print putcoma($tcsaa)?></td><td align=right><?print $row['qty']?></td><td align=right><?print putcoma(($tcsaa*$row['qty']))?></tr>

<tr valign=top><td>5</td><td align=left>Net Vehicle Price</td>
<td align=right><?print putcoma($row['netamt']+$tcsaa)?></td><td align=right><?print $row['qty']?></td><td align=right><?print putcoma((($row['netamt']+$tcsaa)*$row['qty']))?></tr>

<tr valign=top><td>6</td><td align=left> Insurance (<?print $row['insutype']?>) 						
</td>
<td align=right><?print $row['insurenceamt']?></td><td align=right><?print $row['qty']?></td><td align=right><?print putcoma(($row['insurenceamt']*$row['qty']))?></tr>

<tr valign=top><td>7</td><td align=left> RTO (Quaterly/Yearly Tax)</td>
<td align=right><?print $row['regis_permit_amt']?></td><td align=right><?print $row['qty']?></td><td align=right><?print putcoma(($row['regis_permit_amt']*$row['qty']))?></tr>
<tr valign=top><td>8</td><td align=left> TR & Fastag </td>
<td align=right><?print $row['fastag']?></td><td align=right><?print $row['qty']?></td><td align=right><?print putcoma(($row['fastag']*$row['qty']))?></tr>

<?
$gtt=$row['netamt']+$tcsaa+$row['insurenceamt']+$row['regis_permit_amt']+$row['fastag']+$row['extwty']+$row['amc']+$row['others'];

$gtt1=$gtt*$row['qty'];
?>
<tr valign=top><td>9</td><td align=left> Extended Warranty </td>
<td align=right><?print $row['extwty']?></td><td align=right><?print $row['qty']?></td><td align=right><?print putcoma(($row['extwty']*$row['qty']))?></tr>

<tr valign=top><td>10</td><td align=left> AMC </td>
<td align=right><?print $row['amc']?></td><td align=right><?print $row['qty']?></td><td align=right><?print putcoma(($row['amc']*$row['qty']))?></tr>

<tr valign=top><td>11</td><td align=left> Others </td>
<td align=right><?print $row['others']?></td><td align=right><?print $row['qty']?></td><td align=right><?print putcoma(($row['others']*$row['qty']))?></tr>

<tr valign=top><td>12</td><td align=left> GRAND TOTAL </td>
<td align=right><?print $gtt?></td><td align=right><?print $row['qty']?></td><td align=right><?print putcoma(($gtt*$row['qty']))?></tr>

						




</tr>
</table>
<?
}
else
{
?>

<TABLE align = center CELLSPACING=1 CELLPADDING=1 BGCOLOR=BLACK width=90% border=1>
<?if($invno==3281111)
{?>
    <tr align=center><td>SL<br>No.</td><td>Description </td>
    <td>Unit Price </td><td>Qty</td><td>Gross Value</td><td>Disc / unit</td><td>Basic Price</td><td>IGST%</td><td>IGST Amt</td>
    <td>Grand Total</td></tr>
<?}
else{?>
    <tr align=center><td>SL<br>No.</td><td>Description </td>
    <td>Unit Price </td><td>Qty</td><td>Gross Value</td><td>Disc / unit</td><td>Basic Price</td><td>CGST%</td><td>CGST Amt</td><td>SGST%</td><td>SGST Amt</td><?
    if($row['cessamt']>0)
    {?>
        <td>Cess</td>
    <?}?>
<td>Grand Total</td></tr>
<?}?>
<tr valign=top><td>1</td><td><?print $row['config']?></td>
<td align=right><?print $row['unit']?></td><td align=right><?print $row['qty']?></td>
<td align=right><?print $row['unit']*$row['qty']?></td><td align='right'><?print $row['disc']?></td>
<?$cgstper = $row['taxp']/2;?>


<?if($invno==3281111){
    $net = $row['unit']-$row['disc'];?>
    <td align=right><?print $net?></td>
    <td align='right'><?print '0%'?></td>
    <?$cgstamt = 0;?>
    <td align=right><?print $cgstamt?></td>
    <td align=right><?print round($net,0)?></td><br><br></td></tr>
<?
}
else
{?>
<td align=right><?print $row['amt2']?></td>
<td align='right'><?print $cgstper.'%'?></td>
    <?$cgstamt = round($row['amt2']*($row['taxp']/2/100),2);?>
    <td align=right><?print $cgstamt?></td><td align='right'><?print $cgstper.'%'?></td><td align=right><?print $cgstamt?></td>
    <?if($row['cessamt']>0)
    {
    ?>
        <td align=right><?print $row['cessamt']?></td>
    <?}
    $net = $row['amt2']+$row['tax']+$row['cessamt']
    ?>
    <td align=right><?print round($net,0)?></td></td></tr>
<?    
}
$tcsamt=($row['amt2']+$row['tax']+$row['cessamt'])*$row['tcsamt']/100;
$tcsamt=number_format($tcsamt, 2, '.', '');
$tcsamt=round($tcsamt);
$netamount=round($net+$tcsamt,0);


$tcsamt=number_format($tcsamt, 2, '.', '');
if($tcsamt>0)
{
    if($row['cessamt']>0)
    {?>
        <tr><td>&nbsp;</td><td colspan=11 align=center>Tax Collected at Source (TCS) @<?print $row['tcsamt'];?>%</TD>        
    <?}
    else
    {
        if($invno==3281111){?>
    
            <tr><td colspan=9 align=center>Tax Collected at Source (TCS) @<?print $row['tcsamt'];?>% </TD>
            <?}else{?>
            <tr><td>&nbsp;</td><td colspan=10 align=center>Tax Collected at Source (TCS) @<?print $row['tcsamt'];?>%</TD>
    <?}}?>
    
    <td align=right><?print $tcsamt ?></td>
    </tr>
    <?
}
if($invno==3281111){?>
    <tr><td>&nbsp;</td><td>T O T A L</TD><td>&nbsp;</td><td>&nbsp;</td>
<td align=right><?print $row['unit']*$row['qty']?></td><td align='right'><?print $row['disc']?></td><td align=right><?print $net?><td align=right><?print $cgstamt?></td>
<td align=right><?print $cgstamt?></td>
<?if($row['cessamt']>0)
{
?>
    <td align=right><?print $row['cessamt']?></td>
<?}?>
<td align=right><font size=3><?print round($netamount,0) ?></td>
</tr><?}else{?>
<tr><td>&nbsp;</td><td>T O T A L</TD><td>&nbsp;</td><td>&nbsp;</td>
<td align=right><?print $row['unit']*$row['qty']?></td><td align='right'><?print $row['disc']?></td><td align=right><?print $row['amt2']?><td></td><td align=right><?print $cgstamt?></td><td></td>
<td align=right><?print $cgstamt?></td>
<?if($row['cessamt']>0)
{
?>
    <td align=right><?print $row['cessamt']?></td>
<?}?>
<td align=right><font size=3><?print round($netamount,0) ?></td>
</tr>
<?}?>
</table>


<?
$gtot=$netamount+$row['regis_permit_amt']+$row['insurenceamt']+$row['speedgvr'];
?>

<table width=100% cellspacing=4 border=0>
<?if($invno==3281111){?>   
    <tr><td align='center' colspan=8>IGST exempted under section 16(1) of IGST Act 2017</td></tr><?}?>
<?if($invno==383||$invno==384){?>
    <tr><td>GVW :</td><td><b><? print $row['gvw'] ?></b></td><td>A/C Fitment charges :</td><td><b><? print $row['insurenceamt'] ?></b></td><td width=160></td></tr>
<?}else if($invno==437){?>
    <tr><td>GVW :</td><td><b><? print $row['gvw'] ?></b></td><td>A/C Fitment charges :</td><td><b><? print $row['insurenceamt'] ?></b></td><td width=160></td></tr>
<?}else if($invno==336){?>
    <tr><td>GVW :</td><td><b><? print $row['gvw'] ?></b></td><td>A/C Fitment charges :</td><td><b><? print $row['insurenceamt'] ?></b></td><td width=160></td></tr>
<?}else if($invno==725){?>
    <tr><td>GVW :</td><td><b><? print $row['gvw'] ?></b></td><td>AMC Charge Including GST (18%)</td><td><b><? print $row['insurenceamt'] ?></b></td><td width=160></td></tr>
<?}else if($invno==876){?>
    <tr><td>GVW :</td><td><b><? print $row['gvw'] ?></b></td><td>AMC Charge Including GST (18%)</td><td><b><? print $row['insurenceamt'] ?></b></td><td width=160></td></tr>

<?}else if($invno==1300){?>
    <tr><td>GVW :</td><td><b><? print $row['gvw'] ?></b></td><td>AMC Charges </td><td><b><? print $row['insurenceamt'] ?></b><td><td width=160></td></tr>

<?}else if($invno==1652){?>
    <tr><td>GVW :</td><td><b><? print $row['gvw'] ?></b></td><td>AMC 5Year/300000 KM </td><td><b>286421 (Including 18%GST)</b><td><td width=160></td></tr>

<?}else if($invno==2202){?>
    <tr><td>GVW :</td><td><b><? print $row['gvw'] ?></b></td><td>GPS</td><td><b><? print $row['insurenceamt'] ?></b><td><td width=160></td></tr>

<?}

else if($invno==2289){?>
    <tr><td>GVW :</td><td><b><? print $row['gvw'] ?></b></td><td>Insurance charge, GPS </td><td><b><? print $row['insurenceamt'] ?></b><td><td width=160></td></tr>

<?}

else{?>
    <tr><td>GVW :</td><td><b><? print $row['gvw'] ?></b></td><td>Insurance charges :</td><td><b><? print $row['insurenceamt'] ?></b></td><td width=160></td></tr>
<?}?>
<tr><td>Wheel Base :</td><td><b><? print $row['wheel'] ?></b></td><td></td><td></td><td width=160></td></tr>
<tr><td>Tyre size :</td><td><b><? print $row['tyre'] ?></b></td><td>
<? 
if($invno== '133110' || $invno == '111331' ){?>
    GPS, Temp. Reg, Ftag, HSRP
    <?}
else if($invno == 41107 || $invno == 40118 ){?>
    GPS,Front and back camera,
    <?}
    else if($invno == 1049 ){?>
    
    <?}
     else if($invno== 2211){?>
    GPS, Registration, Camera and Air Door
    <?}
     else if($invno== 2268){?>
    GPS, Registration and Camera
    <?}
    else if($invno== 2453){?>
    Registration
    <?}
else if($invno == 139112|| ($invno == 1952)){?>
    GPS
    <?}
    else if($invno == 1951){?>
    Camera and Registration
    <?}
elseif($invno==28 || $invno ==29 || $invno ==116 || $invno == 145 || $invno== 152 || $invno== 153 || $invno== 157 || $invno== 158 || $invno== 159 || $invno== 163 || $invno== 166 || $invno== 167 || $invno== 216 || $row['segment']=='BUS'|| $invno =='326'){
    if($invno==111290)
    {
        ?>
        Registration<?}
    else if($invno==900)
    {
        ?>
        Other charges<?}
    else if($invno==900)
    {
        ?>
        Other charges<?}
    else if($invno==1986 || $invno=='1989')
    {
        ?>
        Registration and Other expenses<?}
        else if($invno==2364 || $invno=='2365')
    {
        ?>
        Registration expenses<?}
        
    else if($invno==1994)
    {
        ?>
        GPS, Registration with 1 Year Tax<?}
    else{?>
      GPS,Registration  
    <?}
    
}
    
    else if($invno== 181131){?>
    <?}
    else if($invno== 38111 || $invno== 171185){?>
    GPS Charges
    <?}
    else if($invno== 817 ){?>
    5 Year 
    <?}
    else if($invno== 1652 ||$invno== 1750 ||$invno== 2122){?>
    GPS, Temp. Registration
    <?}
    
    else if($invno== 1421||$invno== 1422 ||$invno== 1566){?>
    Temp. Registration
    <?}
    else if($invno== 1684 ||$invno== 1879||$invno==  1880 ||$invno==  1930 ){?>
    Temp. Registration, GPS
    <?}
    else if($invno== 1707||$invno== 2046||$invno== 2056){?>
    GPS, Registration with Quarter Tax
    <?}
    else if($invno== 2065 ||$invno==2438 ){?>
    GPS, Registration with 1 Year Tax
    <?}
    else if($invno== 2066){?>
    Registration with Quarter  Tax
    <?}
    else if($invno== 1794){?>
    GPS, Registration with Quarter Tax
    <?}
    else if($invno== 1994){?>
    GPS, Registration with 1 Year Tax
    <?}else if($invno== 2202){?>
    LCP AMC 5 Year/250000 KM
    <?}
    else if($invno== 2229){?>
    GPS
    <?}
    else if($invno== 2281){?>
    GPS, Registration with Tax
    <?}
     else if($invno== 2289){?>
   5 Year/300000 KM LCP AMC
    <?}
    else{?>
    Tax,Registration
    <?}
    
if($invno== 31181 || $invno == 13192||$invno== 17185)
{
?>
    <br></td><td><b>
  <?
}
else if($invno== 4107|| $invno == 4018)
{
  ?>
    <br>  air door, Stereo and tax </td><td><b>     
    <?
}
else if($invno== 817){?>
    /2.5 Lakh KM AMC Rate</td><td><b>
    <?}
else if($invno== 900 || $invno== 1566)
{
  ?>
    :</td><td><b>     
    <?
}
else if($invno== 1652 ||$invno== 1684 ||$invno== 1707||$invno== 1794||$invno== 1879 ||$invno== 1880||$invno== 1930||$invno== 1951 ||$invno== 1952||$invno== 1986 || $invno==1989 || $invno==1994|| $invno==2046|| $invno==2056|| $invno==2065|| $invno==2066|| $invno==2122|| $invno==2202|| $invno==2211|| $invno==2229|| $invno==2268|| $invno==2281|| $invno==2289|| $invno==2364 || $invno==2365|| $invno==2438 || $invno==2453){?>
    :</td><td><b>
    <?}
else
{
  ?>
    <br> and Other expenses :</td><td><b>     
    <?
}
    if($invno==11555){?>By Customer
    <?}else{?>
        <? print $row['regis_permit_amt'] ?></b><?}?>
        </td><td width=160></td><td><b>Total</b></td><td><font size='3'><b><? print $gtot ?></font></td></tr>
<?//<tr><td></td><td><b></b></td><td colspan=4 align='right'><b>Cost for FASTAG (will be extra)</td><td><font size='3'><b><? if($row[fastag]>0){ print $row[fastag].'/Veh.';}else { print '&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp/Veh'; }?></font></td></tr>

</table>
<?
}
$brname=explode(',',$branch);
?>
<?

if($brcode!='Aut14111')
{
print "<table width=95%  cellspacing=1 border=0>";
print "<tr><td></td><td width='10%'><b>Remarks:</td><td><b>$row[remark]</b></td></tr>";
if($invno==1049)
{
    print "<tr><td></td><td width='10%'><b></td><td><b>Additional Offer: LCC XL Smart Plus  AMC for 2 years / 40000 KM  (Clutch, Brake and Engine Oil Change ),  Air Door, Camera, Permit</b></td></tr>";    
}

print "<tr><td></td><td width='10%'><b>Warranty:</td><td>$row[warranty]</b></td>
</table>
<table width=95%  cellspacing=1 border=0><tr><td colspan='2'>&nbsp;&nbsp;Terms and Conditions	</td></tr><tr>";

if($invno==1364)
{
  
 print "<tr><td width='5%'>1.</td><td>The Full payment in advance by Electronic transfer to our Bank A/c. NAME : PSN AUTOMOBILES PVT LTD, BANK: STATE BANK OF INDIA, ACCOUNT NO. : 30728155988, BRANCH : SSI BR. ERNAKULAM, IFSC : SBIN0005387</td></tr>";    

 
}
else
{
   print "<tr><td width='5%'>1.</td><td> The Full payment in advance by Electronic transfer to our Bank A/c no.13805600014689 of FEDERAL BANK LTD, PALARIVATTOM Branch Ernakulam (IFSC Code.FDRL0001380)</td></tr>"; 
}
?>
 <?



    

print "<tr><td width='5%'>2.</td><td> Prices prevailing at the date of delivery will be applicable.</td></tr>
<tr><td width='5%'>3.</td><td> The delivery of the vehicle will be effected within two weeks from the date of receipt of full payment for standard configuration. For builtups and non standard configurations, delivery will be effected in 4 to 6 weeks from the date of receipt of full payment.</td></tr>
<tr><td width='5%'>4.</td><td> Arranging finance for new vehicle will be the sole responsibility of the customer.</td></tr>
<tr><td>5.</td><td> Advance payment will be refunded only after deducting Rs5000/- as Cancellation Charge, if the order is cancelled by the customer.</td></tr>
<tr><td width='5%'>6.</td><td> In case of cancellation, cancellation request letter has to be forwarded along with the original order booking form and original receipt. Refund will be made with in one month with out any interest</td></tr>
<tr><td width='5%'>7.</td><td> In the case of exchange deal, Exchange price will be as per terms & conditions mentioned in the exchange vehicle agreement signed by customer and exchange vehicle in charge of the company.</td></tr>
<tr><td>8.</td><td> Price allowed for exchanging old vehicle will be valid only if customer takes delivery of new vehicle from PSN.</td></tr>
<tr><td width='5%'>9.</td><td> Vehicle once sold will not be taken back.</td></tr>
<tr><td width='5%'>10.</td><td> Subject to Force Majeure clause</td></tr>
<tr><td width='5%'>11.</td><td> Subject to jurisdiction of Courts at Ernakulam.</td></tr>
<tr><td width='5%'>12.</td><td> The customer shall not be entitled to transfer the booking effected into the name of any other person and the vehicle. would be delivered, and invoiced only in the Name &Address of the person specified in the Delivery Order of the Financier.</td></tr>
<tr><td width='5%'>13.</td><td> For registering vehicles under Company name, D&O license issued by the local Government body is required and kindly submit the same during registration process.</td></tr>
</table>

&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></td></tr>";
$mflg = 0;
$mconfig = strtoupper($row['config']);
if (strpos($mconfig, '2049 ')>0 || strpos($mconfig, '2050 ')>0 || strpos($mconfig, '2059 ')>0 || strpos($mconfig, '2075 ')>0 || strpos($mconfig, '2080 ')>0 || strpos($mconfig, '2095 ')>0 || strpos($mconfig, '2110 ')>0 || strpos($mconfig, '2114 ')>0 || strpos($mconfig, '3015 ')>0)
{
    $mflg = 1;
}

print "<tr><td>
.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</font><font size=2><b> </b></FONT><img class='fourth-txt' src='../images/sealblr.jpg'  width=80 height=80 ><img class='first-txt' src='../images/blrsign.jpg'  width=82 height=51 >";
if($brcode=='AUT103' &&  $mflg==1)
{?> 
    <td><img src="pro2049.png" alt="PSN" width="152" height="91" /></td>
<?}

print "<h4 class='second-txt'>
            Authorised Signatory
        </h4>";
print "<h4 class='third-txt'>
            PSN AUTOMOBILES PVT LTD
        </h4>";
//print"<tr><td colspan=> &nbsp;&nbsp;Authorised Signatory  ";
print"<tr><td> </td></tr>";
}


?>


