<table width="100%" class="border">
<tr style="height:25px;">
    <td style="width:5%;" class="border" colspan=""></td>        
    <td style="width:44%;" class="border text-right f12 bold">Qty.</td>        
    <td style="width:10%;"class="border text-right f12 bold"><?php echo number_format($grqty, 2) ?></td>        
    <td style="width:10%;" class="border text-right f12 bold"></td>
    <td style="width:10%;" class="border text-right f12 bold">Total</td>
    <td style="width:10%;" class="border text-right f12 bold"><?php echo number_format($totamt, 2) ?></td>
</tr> 
<?php if ($getmdata['totdisc'] > 0) { ?>
    <tr style="height:25px;">
        <td class="border" colspan="3"></td>        
        <td class="border text-right f11 bold">Less Discount</td>
        <td class="border text-right f11 bold"><?php echo number_format($getmdata['ldiscperc'], 2) . '% ' ?></td>
        <td class="border text-right f11 bold"><?php echo number_format($getmdata['totdisc'], 2) ?></td>
    </tr>    
<?php } ?>

<?php if ($getmdata['vatamt'] > 0) { ?>
    <tr style="height:25px;">
        <td class="border" colspan="3"></td>        
        <td class="border text-right f11 bold">Add VAT</td>
        <td class="border text-right f11 bold"><?php echo number_format($getmdata['vatperc'], 2) . '% ' ?></td>
        <td class="border text-right f11 bold"><?php echo number_format($getmdata['vatamt'], 2) ?></td>
    </tr>    

<?php } ?>
<tr style="height:25px;">
    <td class="border" colspan="4">Mark : <?php echo $getmdata['packby']; ?></td>        

    <td class="border text-right f10 bold" >Bill Amount</td>
    <td class="border text-right f10 bold"><?php echo rajnumformat($getmdata['billamt']) ?></td>

</tr> 


<tr style="height:25px;">
    <td class="border" colspan="4">AED <?php echo rsword($getmdata['billamt']); ?> Only</td>        
    <?php //if ($getmdata['totadv'] > 0) { ?>

        <!-- <td class="border text-right f11 bold">Advance</td>
        <td class="border text-right f11 bold"><?php echo number_format($getmdata['totadv'], 2) ?></td> -->
    <?php //} else { ?>
        <td class="border" colspan="2"></td>        

    <?php //} ?>

</tr> 

<?php if ($getmdata['totadv'] > 0) { ?>
<!-- <tr style="height:25px;">
    
    <td class="border" colspan="3"></td>        

        <td class="border text-right f11 bold">Balance</td>
        <td class="border text-right f11 bold"><?php echo convertAmountToWords($getmdata['totbal'], 2) ?></td>
        </tr> -->
    <?php } ?>

<tr style="height:25px;">
    
    <td class="border" colspan="6">Narration : <?= $getmdata['rem1']; ?></td>        
  

</tr>
<tr style="height:25px;">
    
    <td class="border" colspan="6"> <?=  $getmdata['rem2']; ?></td>        
  

</tr>

</table>
<!--                <table  style="width:100% ;page-break-after: always;">

 <tr style='height:45px'></tr>
 <tr style=''>
     <td style='width:45%'>Cashier Sign </td>
     <td  style='width:30%'>Salesman Sign </td>
     <td style='width:35%;padding-right:3px' class='text-right'>Customer Sign </td>
 </tr>
 <tr style='border-bottom:1px solid black;height:25px'></tr>
 <tr style='height:25px'></tr>
 <tr style=''>
     <td colspan='3' style='font-size:15px'><b><center><?php echo $zcomp['hoadd1'] . " " . $zcomp['hoadd2'] . " " . $zcomp['hoadd3'] . " " . $zcomp['hocity'] . " " . $zcomp['hopin']; ?></center></b></td>
 </tr>
</table>-->
