<?php
	include "db_connection/db_connection.php";
	include "config/config.php";
	
	if($_SESSION['admin_login_id'] == '')
	{
		echo "<script>window.location='index.php';</script>";
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="https://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>BILL</title>
<style>
    body {
        height: 842px;
        width: 960px;
        /* to centre page on screen*/
        margin-left: auto;
        margin-right: auto;
    }
    </style>
<link rel="stylesheet" type="text/css" href="css/fonts/rupyaINR.min.css">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
<script src="css/fonts/rupyaINR.min.js" type="text/javascript"></script>
</head>

<body>
<?php
	$bill_id	=	base64_decode(base64_decode(base64_decode($_GET['bill_id']))); 

	$SLCT_b = "SELECT * FROM billing_det WHERE billing_det_id = '$bill_id'";
	$QURY_b = mysqli_query($connect,$SLCT_b);
	$FTCH_b = mysqli_fetch_object($QURY_b);	
	
	$cur_amt = 	$FTCH_b->courier_amt;
	$tot_amt_lst =  $FTCH_b->total_bill_amt;
	$round_off	 =  str_replace(array( '(', ')' ), '', $FTCH_b->round_off);
	

	$SLCT_p = "SELECT * FROM party_det WHERE party_det_id = '$FTCH_b->party_det_id'";
	$QURY_p = mysqli_query($connect,$SLCT_p);
	$FTCH_p = mysqli_fetch_object($QURY_p);
	
	$SLCT_part = "SELECT cmp_name FROM party_det_log WHERE party_det_id = '$FTCH_b->party_det_id' AND STR_TO_DATE(REPLACE('$FTCH_b->bill_date','/','-'),'%d-%m-%Y') BETWEEN STR_TO_DATE(`active_date`,'%Y-%m-%d') AND STR_TO_DATE(`inactive_date`,'%Y-%m-%d')";
	$QURY_part = mysqli_query($connect,$SLCT_part);
	if(mysqli_num_rows($QURY_part)>0)
	{
		$FTCH_part = mysqli_fetch_object($QURY_part);
		$cmp_name  = $FTCH_part->cmp_name;
	}
	else
	{
		$cmp_name  = $FTCH_p->cmp_name;
	}
	
	
	$SLCT_po_no = "SELECT GROUP_CONCAT(' ', po_no) AS po_no,GROUP_CONCAT(' ',po_date) AS po_date FROM (SELECT po_entry.po_no,po_entry.po_date FROM billing_po_det,po_entry WHERE billing_po_det.po_entry_id=po_entry.po_entry_id AND `billing_det_id`=".$FTCH_b->billing_det_id." GROUP BY po_entry.po_entry_id ORDER BY po_entry.po_entry_id ASC) AS TBL";
	//echo $SLCT_po_no;
	$QURY_po_no = mysqli_query($connect,$SLCT_po_no);
	$FTCH_po_no = mysqli_fetch_object($QURY_po_no);
?>
	<table cellpadding="0" cellspacing="0" border="1" style="border-collapse: collapse;border: 0.1px thin black;" width="100%" align="center">
		<tr>
	        <td colspan="3">
            	<div align="center">
            		<h2><font style="font-family: PaqueteSSK; font-size:40px;">Thahaayaa</font> <font style="font-size:20px; font-family: Logan;">Crea-Dons. . .  </font></h2> 
          		</div>                
          		<div align="center" style="margin-top:-15px;font-weight: bold"><p>243A, Subramaniyapuram, Thirumoothi Layout, R.S.Puram, Coimbatore-641002. Ph: 0422 - 4351080</p></div>
          	</td>
        </tr>
        <tr height ="2">
	        <td colspan="3">
	        	<h3 align="center" style="margin-top: 5px;margin-bottom: 5px;">Tax Invoice</h3>
	      	</td>
        </tr>
        <tr>
	        <td height="70" colspan="3" align="center">
		  	<table cellpadding="0" cellspacing="0"  width="100%"  >
 				<tr height="20">
            		<td width="45"><div align="left" style="padding-left: 05px">Invoice No</div></td>
            		<td width="10"><div align="left" >:</div></td>
            		<td width="130"><div align="left"><?php echo $FTCH_b->bill_no ?></div></td>
            		<td width="45"><div align="left">VAT No</div></td>
            		<td width="10"><div align="left">:</div></td>
			        <td width="45"><div align="left">33222164671</div></td>
			        <td width="45"><div align="left">&nbsp;</div>
			     </tr>
			     <tr height="20">
            		<td width="45"><div align="left" style="padding-left: 05px">Invoice Date</div></td>
            		<td width="10"><div align="left" >:</div></td>
            		<td width="90"><div align="left"><?php echo str_replace("-", "/",$FTCH_b->bill_date); ?></div></td>
            		<td width="45"><div align="left">CST No</div></td>
            		<td width="10"><div align="left">:</div></td>
			        <td width="45"><div align="left">1036607</div></td>
			        <td width="45"><div align="left">&nbsp;</div>
			     </tr>
			     <tr height="20">
            		<td width="45"><div align="left" style="padding-left: 05px">PO No</div></td>
            		<td width="10"><div align="left" >:</div></td>
            		<td width="90"><div align="left"><?php echo $FTCH_po_no->po_no?></div></td>
            		<td width="45"><div align="left">Date</div></td>
            		<td width="10"><div align="left">:</div></td>
			        <td width="45"><div align="left">24/04/2011</div></td>
			        <td width="45"><div align="left">&nbsp;</div>
			     </tr>
			     <tr height="20">
            		<td width="45"><div align="left" style="padding-left: 05px">PO Date</div></td>
            		<td width="10"><div align="left" >:</div></td>
            		<td width="90"><div align="left"><?php echo str_replace("-", "/",$FTCH_po_no->po_date)?></div></td>
            		<td width="45"><div align="left">Import/Export Code</div></td>
            		<td width="10"><div align="left">:</div></td>
			        <td width="45"><div align="left">3215026198</div></td>
			        <td width="45"><div align="left">&nbsp;</div>
			     </tr>
			 </table>
	      	</td>
        </tr>
        <tr>
          	<td  colspan="1" valign="top" style="padding-left:10px; padding-top:10px;" width="50%">To
	          	<div align="center"><strong style="font-size: 20px; "><?php echo $cmp_name; ?></strong></div>                
	          	<div align="center"><?php echo nl2br($FTCH_p->com_addr); ?></div>
	        </td>
          	<td  colspan="2" valign="top" width="50%">
	          	<table cellpadding="0" cellspacing="0"  width="100%"  >
	 				<tr height="20">
	            		<td width="25%"><div align="left" style="padding-left: 05px">Party Code</div></td>
	            		<td width="75%"><div align="left">:&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $FTCH_p->party_code; ?></div></td>
	            	</tr>
	            	<tr height="20">
	            		<td width="25%"><div align="left" style="padding-left: 05px">Contact Person</div></td>
	            		<td width="75%"><div align="left">:&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $FTCH_p->con_pers_1; ?></div></td>
	            	</tr>
	            	<tr height="20">
	            		<td width="20%"><div align="left" style="padding-left: 05px">Contact No</div></td>
	            		<td width="80%"><div align="left">:&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $FTCH_p->con_no_1; ?></div></td>
	            	</tr>
	            	<tr height="20">
	            		<td width="20%"><div align="left" style="padding-left: 05px">Landline No</div></td>
	            		<td width="80%"><div align="left">:&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $FTCH_p->con_ln_no_1; ?></div></td>
	            	</tr>
	            	<tr height="20">
	            		<td width="20%"><div align="left" style="padding-left: 05px;">Email-ID</div></td>
	            		<td width="80%"><div align="left" >:&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $FTCH_p->email_id_1; ?></div></td>
	            	</tr>
	            	<tr height="20">
	            		<td width="20%"><div align="left" style="padding-left: 05px;padding-bottom:10px">Tin No</div></td>
	            		<td width="80%"><div align="left" style="padding-bottom:10px ">:&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $FTCH_p->tin_no; ?></div></td>
	            	</tr>
	         </table>
          	</td>
        </tr>
        <tr>
	        <td height="7" colspan="3">
	        	<div align="center">
	        		<h3 style="margin-top: 5px;margin-bottom: 5px;">Particulars of Taxable Goods</h3>
	      		</div>
	      	</td>
        </tr>
        <tr>
          <td height="34" colspan="3" align="center">
          	<table cellpadding="0" cellspacing="0" border="1" style="border-collapse: collapse;border: 0.1px thin black;" width="100%" height="384px" >
 				<tr height="20">
            		<td width="90"><div align="center">S.No</div></td>
			        <td width="300"><div align="center">Category</div></td>
			        <td width="120">
			        	<div align="center">
			              <p>No of Design (Qty)</p>
			            </div>
			        </td>
			        <td width="91">
			        	<div align="center">
			              <p>No of  Dies</p>
			            </div>
			        </td>
		            <td width="89">
		            	<div align="center">
				             <p>Cost Per Design <br><span class="rupyaINR">Rs</span></p>
				             <!--<p><span class="rupyaINR">Rs</span></p>-->
				        </div>
				    </td>
		            <td width="90">
		            	<div align="center">
			              <p>Total Value <br><span class="rupyaINR">Rs</span></p>
			              <!--<p><span class="rupyaINR">Rs</span></p>-->
			            </div>
			        </td>
           		</tr>
   				<tbody>
 <?php
				$ll = 1;
				$tot_bill_amt = 0;
				$cat_name =  array();
				$no_of_de =  array();
				$no_mass =  array();
				$per_unit_pr = array();
				$tot_amt = array();
				$l=1;
				$lp ='';
				$SLCT_bp = "SELECT * FROM billing_po_det WHERE billing_det_id = '$bill_id' AND cancelled  ='no'";
				$QURY_bp = mysqli_query($connect,$SLCT_bp);
				if(mysqli_num_rows($QURY_bp)>0)
				{
				while($FTCH_bp = mysqli_fetch_object($QURY_bp))			
				{
					$SLCT_mas = "SELECT IFNULL(SUM(master_pieces),'0') as master_pieces FROM billing_po_design_det,design_det WHERE billing_po_design_det.billing_po_det_id = '$FTCH_bp->billing_po_det_id' AND design_det.design_det_id = billing_po_design_det.design_det_id GROUP BY billing_po_det_id";
					$QURY_mas = mysqli_query($connect,$SLCT_mas);
					$FTCH_mas = mysqli_fetch_object($QURY_mas);
					
					$SLCT_exp = "SELECT cat_expantion FROM master_cat WHERE master_cat_id = '$FTCH_bp->master_cat_id' AND master_cat_name = '$FTCH_bp->master_cat_name'";
					$QURY_exp = mysqli_query($connect,$SLCT_exp);
					$FTCH_exp = mysqli_fetch_object($QURY_exp);
					if($l==1)
					{ 
						$cat_name[$l] = $FTCH_bp->master_cat_name." (".$FTCH_exp->cat_expantion.")"; 
						$no_of_de[$l] = $FTCH_bp->no_of_des;
						$no_mass[$l] = $FTCH_mas->master_pieces;
						$per_unit_pr[$l] = $FTCH_bp->per_uint_pr;
						$tot_amt[$l] =  $FTCH_bp->tot_amt;
						$l++;
						
					}
					else if($l > 1)
					{
						$lp = $l-1;
						
						if(($cat_name[$lp]==$FTCH_bp->master_cat_name) && ($per_unit_pr[$lp] != $FTCH_bp->per_uint_pr))
						{
							$cat_name[$l] = $FTCH_bp->master_cat_name." (".$FTCH_exp->cat_expantion.")"; 
							$no_of_de[$l] = $FTCH_bp->no_of_des;
							$no_mass[$l] = $FTCH_mas->master_pieces;
							$per_unit_pr[$l] = $FTCH_bp->per_uint_pr;
							$tot_amt[$l] =  $FTCH_bp->tot_amt;						
							$l++;
						}
						else if(($cat_name[$lp]==$FTCH_bp->master_cat_name) && ($per_unit_pr[$lp] == $FTCH_bp->per_uint_pr))
						{
							$no_of_de[$lp] = $no_of_de[$lp] + $FTCH_bp->no_of_des;
							$no_mass[$lp] = $no_mass[$lp] + $FTCH_mas->master_pieces;
							$tot_amt[$lp] =  $tot_amt[$lp] + $FTCH_bp->tot_amt;
							
						}
						else
						{
							$cat_name[$l] = $FTCH_bp->master_cat_name." (".$FTCH_exp->cat_expantion.")"; 
							$no_of_de[$l] = $FTCH_bp->no_of_des;
							$no_mass[$l] = $FTCH_mas->master_pieces;
							$per_unit_pr[$l] = $FTCH_bp->per_uint_pr;
							$tot_amt[$l] =  $FTCH_bp->tot_amt;		
							$l++;
						}					
						
					}
				
					//$tot_bill_amt =$tot_bill_amt + $tot_amt[$l];
				}			
				}
				else
				{
					$cat_name[1] = "CPC (Cartoon Plain Charms)"; 
					$no_of_de[1] = 0;
					$no_mass[1] = 0;
					$per_unit_pr[1] = 10;
					$tot_amt[1] =  10;		
				}
				$tot_dies = 0;
				/*foreach($cat_name as $ct_nm)
				{*/
				$siz_cat = sizeof($cat_name);
				
				for($i1=1;$i1<=$siz_cat;$i1++)
				{	
					if($i1<26 )
					{					
					$tot_bill_amt =$tot_bill_amt + $tot_amt[$i1];
						if($ll%2 != "0")
							$bg = "gradeX";
						else
							$bg = "class='gradeC'";
?>
				
				<tr <?php echo $bg ?>>
					<td height="30" align="center"><?php echo $i1 ?></td>
					<td align="left">&nbsp;<?php echo $cat_name[$i1] ?> </td>
					<td align="center" style="padding-right: 5px"><?php echo $no_of_de[$i1] ?></td>
					
					<td align="center" style="padding-right: 5px"><?php echo $no_mass[$i1]; ?></td>
					<td align="right" style="padding-right: 5px"><?php echo number_format($per_unit_pr[$i1],2) ?></td>
					<td align="right" style="padding-right: 5px"><?php echo number_format($tot_amt[$i1],2); ?></td>
				</tr>
				
<?php
				$tot_dies = $tot_dies+$no_mass[$i1];
				$ll++;
				}
				}
		?>
            <?php
            if($ll>9)
            {
            	if($ll>25)
            	{
            ?>
            		</table>
		        	</td>
		    		</tr>
		    		
					<table cellpadding="0" cellspacing="0" border="1" style="border-collapse: collapse;border: 0.1px thin black;margin-top: 250px" width="100%" align="center">
						    <tr>
						        <td colspan="3">
					            	<div align="center">
					            		<h2><font style="font-family: PaqueteSSK; font-size:40px;">Thahaayaa</font> <font style="font-size:20px; font-family: Logan;">Crea-Dons. . .  </font></h2> 
					          		</div>                
					          		<div align="center" style="margin-top:-15px;font-weight: bold"><p>243A, Subramaniyapuram, Thirumoothi Layout, R.S.Puram, Coimbatore-641002. Ph: 0422 - 4351080</p></div>
					          	</td>
					        </tr>
					        <tr height ="2">
						        <td colspan="3">
						        	<h3 align="center" style="margin-top: 5px;margin-bottom: 5px;">Tax Invoice</h3>
						      	</td>
					        </tr>
					        <tr>
          						<td height="34" colspan="3" align="center">
          							<table cellpadding="0" cellspacing="0" border="1" style="border-collapse: collapse;border: 0.1px thin black;" width="100%" height="384px" >
						 				<tr height="20">
						            		<td width="90"><div align="center">S.No</div></td>
									        <td width="300"><div align="center">Category</div></td>
									        <td width="120">
									        	<div align="center">
									              <p>No of Design (Qty)</p>
									            </div>
									        </td>
									        <td width="91">
									        	<div align="center">
									              <p>No of Dies</p>
									            </div>
									        </td>
								            <td width="89">
								            	<div align="center">
										             <p>Cost Per Design <br><span class="rupyaINR">Rs</span></p>
										             <!--<p><span class="rupyaINR">Rs</span></p>-->
										        </div>
										    </td>
								            <td width="90">
								            	<div align="center">
									              <p>Total Value <br><span class="rupyaINR">Rs</span></p>
									              <!--<p><span class="rupyaINR">Rs</span></p>-->
									            </div>
									        </td>
						           		</tr>
							         	
	            <?php
	            						for($ll3=$ll;$ll3<=sizeof($cat_name);$ll3++)
										{
												
												$tot_bill_amt =$tot_bill_amt + $tot_amt[$ll3];
													if($ll%2 != "0")
														$bg = "gradeX";
													else
														$bg = "class='gradeC'";
						?>
											
											<tr <?php echo $bg ?>>
												<td height="30" align="center"><?php echo $ll3; ?></td>
												<td align="left">&nbsp;<?php echo $cat_name[$ll3] ?> </td>
												<td align="center" style="padding-right: 5px"><?php echo $no_of_de[$ll3] ?></td>
												
												<td align="center" style="padding-right: 5px"><?php echo $no_mass[$ll3] ?></td>
												<td align="right" style="padding-right: 5px"><?php echo number_format($per_unit_pr[$ll3],2) ?></td>
												<td align="right" style="padding-right: 5px"><?php echo number_format($tot_amt[$ll3],2); ?></td>
											</tr>
											
						<?php
											$tot_dies = $tot_dies+$no_mass[$ll3];
										}
						?>
									
		          					<tr>
							              <td width="90" height="29" align="center">&nbsp;</td>
							              <td align="center">Total</td>
							              <td align="center" style="padding-right: 5px"><?php echo array_sum($no_of_de); ?></td>
							              <td align="center" style="padding-right: 5px"><?php echo array_sum($no_mass); ?></td>
							              <td>&nbsp;</td>
							              <td>&nbsp;</td>
						            </tr>
						         </table>
          						</td>
          					</tr>
			<?php
				}
				else
				{
            ?>
            <tr>
	              <td width="90" height="29" align="center">&nbsp;</td>
	              <td align="center">Total</td>
	              <td align="center" style="padding-right: 5px"><?php echo array_sum($no_of_de); ?></td>
	              <td align="center" style="padding-right: 5px"><?php echo array_sum($no_mass); ?></td>
	              <td>&nbsp;</td>
	              <td>&nbsp;</td>
            </tr>
            </table>
		        </td>
		    	</tr>
		    	<table cellpadding="0" cellspacing="0" border="0" style="border-collapse: collapse;border: 0px solid black;" width="100%" align="center">
				 
            <?php
	            for($i=$ll-1;$i<=23;$i++)
				 {
	?>
				 <div style="border:0px solid black;">
		    	<tr>
		              <td width="90" height="34" align="center">&nbsp;</td>
		              <td>&nbsp;</td>
		              <td>&nbsp;</td>
		              <td>&nbsp;</td>
		              <td>&nbsp;</td>
		              <td>&nbsp;</td>
	            </tr>
	            </div>
			<?php 
				} 
			?>
			</table>
			<table cellpadding="0" cellspacing="0" border="1" style="border-collapse: collapse;border: 0.1px thin black;margin-top: 250px" width="100%" align="center">
				    <tr>
				        <td colspan="3">
			            	<div align="center">
			            		<h2><font style="font-family: PaqueteSSK; font-size:40px;">Thahaayaa</font> <font style="font-size:20px; font-family: Logan;">Crea-Dons. . .  </font></h2> 
			          		</div>                
			          		<div align="center" style="margin-top:-15px;font-weight: bold"><p>243A, Subramaniyapuram, Thirumoothi Layout, R.S.Puram, Coimbatore-641002. Ph: 0422 - 4351080</p></div>
			          	</td>
			        </tr>
			        <tr height ="2">
				        <td colspan="3">
				        	<h3 align="center" style="margin-top: 5px;margin-bottom: 5px;">Tax Invoice</h3>
				      	</td>
			        </tr>
			<?php
				}
			}
			else
			{
				while($ll<9)
				{
					
			?>	
				<tr>
		              <td width="90" height="34" align="center">&nbsp;</td>
		              <td>&nbsp;</td>
		              <td>&nbsp;</td>
		              <td>&nbsp;</td>
		              <td>&nbsp;</td>
		              <td>&nbsp;</td>
	            </tr>
	         <?php	
	         	$ll++;
			}
			?>   
					<tr>
			              <td width="90" height="29" align="center">&nbsp;</td>
			              <td align="center">Total</td>
			              <td align="center" style="padding-right: 5px"><?php echo array_sum($no_of_de); ?></td>
			              <td align="center" style="padding-right: 5px"><?php echo array_sum($no_mass); ?></td>
			              
			              <td>&nbsp;</td>
			              <td>&nbsp;</td>
		            </tr>
					</table>
		        </td>
		    </tr>
			<?php	
			}
			$tax_amt = ($FTCH_b->bill_tax/100)*$tot_bill_amt;
			?>
	<tr>
	        <td height="70" colspan="3" align="center">
		  	<table cellpadding="0" cellspacing="0"  width="100%"  >
 				<tr height="25">
            		<td width="20%"><div align="left" style="padding-left: 05px">&nbsp;</div></td>
            		<td width="03%"><div align="left" >&nbsp;</div></td>
            		<td width="40%"><div align="left">&nbsp;</div></td>
            		<td width="16%" style="padding-right: 10px;"><div align="right">Net Sales Amount</div></td>
            		<td width="03%"><div align="left">:</div></td>
			        <td width="20%"><div align="right" style="padding-right: 5px"><?php echo number_format($tot_bill_amt,2); ?></div></td>
			     </tr>
			     <tr height="25">
            		<td width="20%"><div align="left" style="padding-left: 05px">&nbsp;</div></td>
            		<td width="03%"><div align="left" >&nbsp;</div></td>
            		<td width="30%"><div align="left">&nbsp;</div></td>
            		<td width="16%" style="padding-right: 10px;"><div align="right">VAT / CST <?php echo number_format($FTCH_b->bill_tax,2); ?> %</div></td>
            		<td width="03%"><div align="left">:</div></td>
			        <td width="30%"><div align="right" style="padding-right: 5px"><span id="tax_cl"><?php echo number_format($tax_amt,2); ?></span></div></td>
			     </tr>
			     <tr height="25">
            		<td width="20%"><div align="left" style="padding-left: 05px"><b>Tax Total In Words</b></div></td>
            		<td width="03%"><div align="left" >:</div></td>
            		<td width="30%"><div align="left" style="text-transform:capitalize"><?php echo  convert_number_to_words($tax_amt); ?> Only</div></td>
            		<td width="16%" style="padding-right: 10px;"><div align="right"><b>Sub Total</b></div></td>
            		<td width="03%"><div align="left">:</div></td>
			        <td width="30%"><div align="right" style="padding-right: 5px"><b><?php echo number_format(($tot_bill_amt+$tax_amt),2); ?></b></div></td>
			     </tr>
			     <tr height="25">
            		<td width="20%"><div align="left" style="padding-left: 05px">&nbsp;</div></td>
            		<td width="03%"><div align="left" >&nbsp;</div></td>
            		<td width="30%"><div align="left">&nbsp;</div></td>
            		<td width="16%" style="padding-right: 10px;"><div align="right">Courier</div></td>
            		<td width="03%"><div align="left">:</div></td>
			        <td width="30%"><div align="right" style="padding-right: 5px"><?php echo number_format($cur_amt,2); ?></div></td>
			     </tr>
			     <tr height="25">
            		<td width="20%"><div align="left" style="padding-left: 05px"><b>Grand Total In Words</b></div></td>
            		<td width="03%"><div align="left" >:</div></td>
            		<td width="30%"><div align="left" style="text-transform:capitalize"><?php $fin_amt = $tot_bill_amt+$tax_amt+$cur_amt+$round_off; echo  convert_number_to_words($fin_amt); ?> Only</div></td>
            		<td width="16%" style="padding-right: 10px;"><div align="right">Grand Total</div></td>
            		<td width="03%"><div align="left">:</div></td>
			        <td width="30%"><div align="right" style="padding-right: 5px"><?php  echo number_format($fin_amt,2) ?></div></td>
			     </tr>
			     <tr height="10">
            		<td width="100%" colspan="6"><div align="center" style="padding-left: 05px">&nbsp;</div></td>
            	 </tr>
			     <tr height="25">
            		<td width="100%" colspan="6"><div align="center" style="padding-left: 05px"><b>If There is any Changes in Invoice Details Please intimate us within two working days.</b></div></td>
            	 </tr>
			 </table>
	      	</td>
        </tr>
        <tr>
	        <td height="70" colspan="3" align="center">
		  	<table cellpadding="0" cellspacing="0"  width="90%"  >
 				<tr height="25">
            		<td colspan="3"><div align="center" style=""><b>Thahaayaa Bank Details</b></div></td>
            		<td ><div align="left">&nbsp;</div></td>
            		<td colspan="3"><div align="center" style=""><b>Terms & Conditions</b></div></td>
            		<td ><div align="left">&nbsp;</div></td>
            	</tr>
 				<tr height="25">
            		<td width="15%"><div align="left" style="padding-left: 05px">Name</div></td>
            		<td width="03%"><div align="left" >:</div></td>
            		<td width="20%"><div align="left">Thahaayaa Creadons</div></td>
            		<td width="12%"><div align="left">&nbsp;</div></td>
            		<td colspan="50%"><div align="left" style=""><b>1. </b>Payment with in 10 Days from the date of billing.</div></td>
			     </tr>
			     <tr height="25">
            		<td width="15%"><div align="left" style="padding-left: 05px">Bank Name</div></td>
            		<td width="03%"><div align="left" >:</div></td>
            		<td width="20%"><div align="left">Union Bank of India</div></td>
            		<td width="12%"><div align="left">&nbsp;</div></td>
            		<td colspan="50%"><div align="left" style=""><b>2. </b>Subject To coimbatore Jurisdiction.</div></td>
			     </tr>
			     <tr height="25">
            		<td width="15%"><div align="left" style="padding-left: 05px">A/c No</div></td>
            		<td width="03%"><div align="left" >:</div></td>
            		<td width="20%"><div align="left">548901010050617</div></td>
            		<td width="12%"><div align="left">&nbsp;</div></td>
            		<td colspan="50%"><div align="left" style="">&nbsp;</div></td>
			     </tr>
			     <tr height="25">
            		<td width="15%"><div align="left" style="padding-left: 05px">Branch</div></td>
            		<td width="03%"><div align="left" >:</div></td>
            		<td width="20%"><div align="left">R.S.Puram</div></td>
            		<td width="12%"><div align="left">&nbsp;</div></td>
            		<td colspan="50%"><div align="left" style="">&nbsp;</div></td>
			     </tr>
			     <tr height="25">
            		<td width="15%"><div align="left" style="padding-left: 05px">IFSC Code</div></td>
            		<td width="03%"><div align="left" >:</div></td>
            		<td width="20%"><div align="left">UBIN0550264</div></td>
            		<td width="12%"><div align="left">&nbsp;</div></td>
            		<td colspan="50%"><div align="left" style="">&nbsp;</div></td>
			     </tr>
			 </table>
	      	</td>
        </tr>
        <tr>
	        <td height="28" width="50%">
	        	<div align="center" style="padding-left:10px;padding-right:10px ">
	        		<p align="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Certified that the particulars given above are true and correct and the amount indicated represents the pricce actually charged and that there is no flow of additional consideration,directly or indirectly, from the buyer</p>
	      		</div>
	      	</td>
	      	<td height="28" width="20%">
	        	<div align="center" style="padding-left:10px;padding-right:10px ">
	        		
	      		</div>
	      	</td>
	      	<td height="28" width="30%">
	        	<div align="center">
	        		<p>For M/s <font style="font-family: PaqueteSSK; font-size:22px;font-weight:bold ">Thahaayaa</font> <font style="font-size:12px; font-family: Logan;">Crea-Dons. . .  </font></p> 
	      		</div>
	      		<div align="center" height="20">
	        		&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	      		</div>
	      		<div align="center">
	        		<p>Authorised Signature</p> 
	      		</div>
	      	</td>
        </tr >
        <tr>
	        <td height="7" colspan="3">
	        	<div align="center">
	        		<p style=" font-size:14px; margin-top: 5px;margin-bottom: 5px;"><b>Sales : </b>sales@thahaayaa.com / 9894347273 || <b>Accounts : </b>accounts@thahaayaa.com / 9843214151 || <b>Internal Management : </b>info@thahaayaa.com / 9843018906</p>
	      		</div>
	      	</td>
        </tr>
   </tbody>
 </table> 
</body>
</html>
