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

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

<tr style="height:25px;">
    <td class="border" colspan="5">Mark : <?php echo $getmdata['packby']; ?></td>
    <td class="border text-right f10 bold" colspan="2"> VAT</td>
    <td class="border text-right f10 bold"><?php echo number_format($totvatamt,2) ?></td>
</tr>


<tr style="height:25px;">
    <td class="border" colspan="5">AED <?php echo rsword($getmdata['billamt']); ?> Only</td>
    <td class="border text-right f10 bold" colspan="2">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="5">Narration : <?= $getmdata['rem1']; ?></td>
    <?php if ($getmdata['totadv'] > 0) { ?>
        <td class="border text-right f11 bold" colspan="2">Advance</td>
        <td class="border text-right f11 bold"><?php echo number_format($getmdata['totadv'], 2) ?></td>
    <?php } else { ?>
        <td class="border" colspan="3"></td>
    <?php } ?>

</tr>
<tr style="height:25px;">

    <td class="border" colspan="5"> <?= $getmdata['rem2']; ?></td>
    <?php if ($getmdata['totadv'] > 0) { ?>

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

    <?php } ?>
</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>-->