<div>
	<?php
	if (!empty($tNoBarcode))
	{
		?>
				<barcode code="<?php echo $tNo; ?>" class="barcode" size="" height="0.6" text="0" type="C128A" />
		<?php
	}?>
</div>
<table class="noborder invMeta" style="width:100%;margin-bottom: 5px;" cellspacing="0" cellpadding= "0">
	<tbody><?php
//Inv no:1234 changed to INV no : 1234(Buddys infotech)
//*****************

		
/*
		if (!empty($transQr) && !empty($qrTransImg))
		{
			?><tr>
				<td colspan="2" class="label ar" style="padding:0 -5px 0 0">
					<img src="<?php echo $qrTransImg; ?>" width="3cm" height="3cm" class="" />
				</td>
			</tr><?php
		}
*/
?>		<tr><td colspan="2" <?php echo $headColor == "transparent" ? "" : "style='padding:10px !important'"; ?>  class="<?php echo ($tType == 'SH' && $isLogo == 2) ? 'headtd2 bgColor' : 'headtd'; ?>"><?php echo $headColor == "transparent" ? "" : "&nbsp;"; ?><?php echo $titleText; ?></td></tr>
<?php
	if ($pdf_type && empty($is_email))
	{
		?><tr><td colspan="2" ><?php echo $pdff_type; ?></td></tr><?php
	}
	?>
	<?php 
		//	if(!empty($relNumber) || !empty($relDate)){
					$width = 'width = "40%";';
		//	}else{
		//			$width ='width = "25%";';
		//	}
	?>
	<tr>
			<td   style="white-space: nowrap;" <?php echo $width; ?> class="label"><?php echo mytranslang('No',$tNo_text); ?></td>
			<td> &nbsp;:
			<?php if(empty($fontname)){
				 echo '<b>'. $tNo.'</b>';
			}else{
				 echo '<span>'. $tNo.'</span>';
			}?>
			</td>
		</tr>
		<tr>
			<td  style="white-space: nowrap;" <?php echo $width; ?> class="label"><?php echo mytranslang('Date', $tDate_text); ?></td>
			<td>
			&nbsp;:
			<?php if(empty($fontname)){
				 echo '<b>'. $tDate.'</b>';
			}else{
				 echo '<span>'. $tDate.'</span>';
			}?>
			</td>
		</tr>
		<?php if(!empty($paymentName) && $tType == 'SR') { ?>
		<tr>
			<td  <?php echo $width; ?> class="label"><?php echo mylang("Payment");?></td>
			<td>
			&nbsp;: 
			<?php if(empty($fontname)){
				 echo '<b>'. $paymentName . '</b>';
			}else{
				 echo '<span>'. $paymentName.'</span>';
			}?>
			</td>
		</tr>
		<?php } ?>
		<?php
		if (!empty($dueDate) && !empty($isDueDate) && (empty($categoryCode) || (!empty($categoryCode) && $categoryCode != 'TL')))
		{
		?><tr>
			<td <?php echo $width; ?> class="label"><?php echo $dueDate_text;?></td>
			<td>
			&nbsp;: 
			<?php if(empty($fontname)){
				 echo '<b>'. $dueDate.'</b>';
			}else{
				 echo '<span>'. $dueDate.'</span>';
			}?>
			</td>
		</tr><?php
		}

		if (!empty($relNumber))
		{
			$relNumber = wordwrap($relNumber, 25, '<br />', true);
		?><tr>
			<td  <?php echo $width; ?> class="label"><?php echo  $rel_tNo_text; ?></td>
			<td>
			&nbsp;:
			<?php if(empty($fontname)){
				 echo '<b>'. $relNumber.'</b>';
			}else{
				 echo '<span>'. $relNumber.'</span>';
			}?>
			</td>
		</tr><?php
		}

		if (!empty($relDate))
		{
		?><tr>
			<td   <?php echo $width; ?> class="label"><?php echo $rel_tDate_text;  ?></td>
			<td>
			&nbsp;:
			<?php if(empty($fontname)){
				 echo '<b>'. $relDate.'</b>';
			}else{
				 echo '<span>'. $relDate.'</span>';
			}?>
			</td>
		</tr><?php
		}
		
		if ($paymentName && $tType == 'PE')
		{
		?><tr>
			<td  <?php echo $width; ?> class="label"><?php echo mylang("PaymentMode");?></td>
			<td>
			&nbsp;: 
			<?php if(empty($fontname)){
				 echo '<b>'. $paymentName.'</b>';
			}else{
				 echo '<span>'. $paymentName.'</span>';
			}?>
			</td>
		</tr><?php
		}
		if (!empty($ref) && empty($refLinks))
		{
		?><tr>
			<td nowrap="nowrap" <?php echo $width; ?> class="label"><?php
			
			echo mylang("Reference");
			echo '</td>
			<td>';
			echo '&nbsp;: ';

			if(empty($fontname))
			{
				 echo '<b>'. $ref .'</b>';
			}
			else
			{
				 echo '<span>'. $ref . '</span>';
			}
			?></td>
		</tr><?php
		}
		
		if (!empty($refLinks))
		{
		?><tr>
			<td class="label"><?php
			//If type is sup.credit note or sup debit note then display supplier invoice no as text else display text in reference label 
			if(!empty($tType) && ($tType == 'PC' || $tType == 'PD')){
			$invtext = (mylang("Reference") == "Reference") ? "Supplier Inv No#" :  mylang("Reference");
				echo $invtext;
			}else{
				echo  mylang("Reference");
			}
			echo'</td>
			<td>';
			echo '&nbsp;: ';

			if(empty($fontname))
			{
				 echo '<b>'. $refLinks .'</b>';
			}
			else
			{
				 echo '<span>'. $refLinks . '</span>';
			}
			?></td>
		</tr><?php
		}
		
		if ($tType == DELCHALLAN && !empty($classCode) && $classCode !='SHO' && get_company('countryCode')=='IN')
		{
			
		?><tr>
			<td  <?php echo $width; ?> class="label"><?php echo mylang("ChallanType"); ?></td>
			<td>
			&nbsp;: 
			<?php if(empty($fontname)){
				 echo '<b>'. $this->config->item($classCode).'</b>';
			}else{
				 echo '<span>'. $this->config->item($classCode).'</span>';
			}?>
			</td>
		</tr><?php
		}
		if ((!empty($sRepName) && !empty($issalesrep)) && (empty($source) || $source != 'P'))
		{
		?><tr>
			<td   <?php echo $width; ?> class="label"><?php echo $srep_text; ?></td>
			<td>
			&nbsp;:
			<?php if(empty($fontname)){
				 echo '<b>'. $sRepName.'</b>';
			}else{
				 echo '<span>'. $sRepName.'</span>';
			}?>
			</td>
		</tr>
		<?php
		}
		if (!empty($refName) && !empty($isreferedby))
		{
		?><tr>
			<td nowrap="nowrap" <?php echo $width; ?> class="label"><?php echo mylang("ReferredBy");?></td>
			<td>
			&nbsp;:
			<?php if(empty($fontname)){
				 echo '<b>'. $refName.'</b>';
			}else{
				 echo '<span>'. $refName.'</span>';
			}?>
			</td>
		</tr>
		<?php
		}
		if (!empty($sRepMobile) && !empty($issalesrep))
		{
		?>
		<tr>
			<td  <?php echo $width; ?> class="label"><?php echo $srep_mobile_text; ?></td>
			<td>
			&nbsp; : 
			<?php if(empty($fontname)){
				 echo '<b>'. $sRepMobile.'</b>';
			}else{
				 echo '<span>'. $sRepMobile.'</span>';
			}?>
			</td>
		</tr>

		<?php
		}
		if (!empty($isprojectname) && !empty($prjName))
		{
		?>
		<tr>
			<td  <?php echo $width; ?> class="label"><?php  echo mylang("ProjectName") ; ?></td>
			<td>
			&nbsp; : 
			<?php if(empty($fontname)){
				 echo '<b>'. $prjName.'</b>';
			}else{
				 echo '<span>'. $prjName.'</span>';
			}?>
			</td>
		</tr>

		<?php
		}
		if ((!empty($source) && $source == 'P') && !empty($tableType) && !empty($tableName)) 
		{
		?><tr>
			<td <?php echo $width; ?> class="label"><?php echo ($tableType == 'D' ? 'Table ' : 'Take Away '); ?></td>
			<td>: <span><?php echo $tableName; ?></span>									
			<?php if(!empty($kot_no)) { ?>
				<span>, KOT : <?php echo $kot_no; ?> </span>
			<?php  } ?>
		</td>
		</tr>
		<?php if(!empty($sRepName)) { ?>
			<tr>
				<td <?php echo $width; ?> class="label"><?php echo 'Waiter : '; ?></td>
				<td>: <span><?php echo $sRepName; ?></span></td>
			</tr>
		<?php } ?>
		<?php }
		/*
		if ($isPrint)
		{
	?><tr>
		<td>Page</td>
		<td>: <b>[[page_cu]] / [[page_nb]]</b></td>
	</tr><?php
		}
		*/
	
	?></tbody>
</table>

