purchasevoucher
This commit is contained in:
@ -71,12 +71,19 @@
|
||||
<div class="row bill-footer">
|
||||
<div class="col text-right">
|
||||
<p><strong>Subtotal:</strong> <?php echo myCurrency($total,true); ?></p>
|
||||
<p><strong>Discount percent:</strong> <?php echo myCurrency($discount,true); ?></p>
|
||||
<?php $discounted = ($total*$discount/100) ?>
|
||||
<p><strong>Discount amount:</strong> <?php echo myCurrency($discounted,true); ?></p>
|
||||
<?php $discounted = 0; ?>
|
||||
<?php if($discount > 0): ?>
|
||||
<p><strong>Discount percent:</strong> <?php echo myCurrency($discount,true); ?></p>
|
||||
<?php $discounted = ($total*$discount/100) ?>
|
||||
<p><strong>Discount amount:</strong> <?php echo myCurrency($discounted,true); ?></p>
|
||||
<?php endif; ?>
|
||||
<?php $taxable = $total - $discounted ?>
|
||||
<p><strong>Taxable amount:</strong> <?php echo myCurrency($taxable,true); ?></p>
|
||||
<p><strong>Tax (13%):</strong> <?php echo myCurrency($tax=($taxable*13)/100,true); ?></p>
|
||||
<?php $tax = 0; ?>
|
||||
<?php //print_r($Purchase->vatToggle);die; ?>
|
||||
<?php if($Purchase->vatToggle != 1): ?>
|
||||
<p><strong>Taxable amount:</strong> <?php echo myCurrency($taxable,true); ?></p>
|
||||
<p><strong>Tax (13%):</strong> <?php echo myCurrency($tax=($taxable*13)/100,true); ?></p>
|
||||
<?php endif; ?>
|
||||
<p><strong>Total:</strong> <?php echo myCurrency(($taxable+$tax),true); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user