$paymentmode = $res3["billtype"];
$billnumberprefix = $res3["billnumberprefix"];
$billnumberpostfix = $res3["billnumberpostfix"];
$customername = $res3["customername"];
$res3packaging = $res3["packaging"];
$res3delivery = $res3["delivery"];
$res3subtotal = $res3["subtotal"];
$res3subtotalafterdiscount = $res3["subtotalafterdiscount"];
$res3subtotalaftertax = $res3["subtotalaftertax"];
$res3totaltax = $res3subtotalaftertax - $res3subtotalafterdiscount;
$res3subtotaldiscounttotal = $res3["subtotaldiscounttotal"];
$res3totalamount = $res3["totalamount"];
$res3username = $res3["username"];
$res3roundoff = $res3["roundoff"];
include 'convert_currency_to_words.php';
$convertedwords = covert_currency_to_words($res3totalamount);
//function call
$subtotaldiscountpercent = $res3["subtotaldiscountpercent"];
$subtotaldiscountrupees = $res3["subtotaldiscountrupees"];
$subtotaldiscountpercentapply1 = $res3['subtotaldiscountpercentapply1'];
$subtotaldiscountamountapply1 = $res3['subtotaldiscountamountapply1'];
$subtotaldiscountamountonlyapply1 = $res3['subtotaldiscountamountonlyapply1'];
$subtotaldiscountamountonlyapply2 = $res3['subtotaldiscountamountonlyapply2'];
//$subtotaldiscounttotal = $res3['subtotaldiscounttotal'];
if ($subtotaldiscountpercentapply1 != "0.00") {
    $subtotaldiscounttotal = $res3['subtotaldiscountamountapply1'];
    $subtotaldiscountpercent = $res3['subtotaldiscountpercentapply1'];
    $discountshowtext = 'Discount @ ' . $subtotaldiscountpercent . '%';
}
if ($subtotaldiscountamountonlyapply1 != "0.00") {
    $subtotaldiscounttotal = $res3['subtotaldiscountamountonlyapply1'];
Exemple #2
0
?>
&nbsp;</span></div></td>
	  </tr>
    </table>	
	
	
	
	</td>
  </tr>
  <tr>
    <td colspan="2">&nbsp;</td>
  </tr>
  <?php 
if ($lumpsum != '0.00') {
    include 'convert_currency_to_words.php';
    $convertedwords = covert_currency_to_words($lumpsum);
    //function call
    echo $lumpsumhtml1 = '<tr><td colspan="2"><span class="style6">Total Amount : ' . $lumpsum . '/- ( ' . $convertedwords . ' )</span></td></tr>';
    //echo $lumpsumhtml2 = '<tr><td colspan="2"><span class="style6">( '.$convertedwords.' )</span></td></tr>';
    echo $lumpsumhtml2 = '<tr><td colspan="2"><span class="style6">&nbsp;</span></td></tr>';
}
$tcheaderhtml = '<tr><td colspan="2"><span class="style6">Terms &amp; Conditions:</span></td></tr>';
for ($j = 1; $j <= 8; $j++) {
    $tclinetext = $res3["tcline" . $j];
    if ($tclinetext != '') {
        $jloopcount = $jloopcount + 1;
        echo $tcheaderhtml;
        ?>
  <tr>
    <td colspan="2"><span class="style6"><?php 
        echo $jloopcount . ". " . $tclinetext;
echo $columncount;
?>
" valign="top"><div align="right"><span class="style27">Total  &nbsp;</span></div></td>
        <td valign="top"><div align="right"><span class="style27">&nbsp;<?php 
echo $totalamount;
?>
&nbsp;</span></div></td>
      </tr>
      </thead>
    </table>	</td>
  </tr>
  <tr>
    <td colspan="3"><div class="style27">
        <?php 
include 'convert_currency_to_words.php';
echo $convertedwords = covert_currency_to_words($totalamount);
//function call
?>
        </span></div></td>
  </tr>
  
  <tr>
    <td width="340"><span class="style6"><?php 
echo 'Total Items : ' . round($totalquantity, 4);
?>
</span></td>
    <td width="320" colspan="2" rowspan="5" valign="top"><table width="98%" border="0" align="left" cellpadding="0" cellspacing="0">
        <tr>
          <td><div align="right"><span class="style27"> </span>
                  <table width="99%" border="0" align="left">
                    <tr>
  </tr>
  <tr>
    <td>Recevied From </td>
    <td><?php 
echo $customername;
?>
&nbsp;</td>
    <td width="4">&nbsp;</td>
  </tr>
  <tr>
    <td>Amount Received </td>
    <td>
	<?php 
echo 'Rs.' . $amount;
include 'convert_currency_to_words.php';
$convertedwords = covert_currency_to_words($amount);
//function call
echo ' ( ' . $convertedwords . ' )';
?>
	</td>
    <td>&nbsp;</td>
  </tr>
  
  <tr>
    <td>Towards</td>
    <td><?php 
echo $remarks;
?>
</td>
    <td>&nbsp;</td>
  </tr>