mirror of
https://github.com/itflow-org/itflow
synced 2026-03-09 15:24:51 +00:00
subtotal and tax total now woking in invoices
This commit is contained in:
@@ -165,6 +165,8 @@ if(isset($_GET['invoice_id'])){
|
|||||||
$invoice_item_subtotal = $row['invoice_item_price'];
|
$invoice_item_subtotal = $row['invoice_item_price'];
|
||||||
$invoice_item_tax = $row['invoice_item_tax'];
|
$invoice_item_tax = $row['invoice_item_tax'];
|
||||||
$invoice_item_total = $row['invoice_item_total'];
|
$invoice_item_total = $row['invoice_item_total'];
|
||||||
|
$total_tax = $invoice_item_tax + $total_tax;
|
||||||
|
$sub_total = $invoice_item_price * $invoice_item_quantity + $sub_total;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@@ -204,7 +206,7 @@ if(isset($_GET['invoice_id'])){
|
|||||||
<tr>
|
<tr>
|
||||||
<td colspan="5"></td>
|
<td colspan="5"></td>
|
||||||
<td><strong>SubTotal</strong></td>
|
<td><strong>SubTotal</strong></td>
|
||||||
<td class="text-right">$<?php echo number_format($invoice_subtotal,2); ?></td>
|
<td class="text-right">$<?php echo number_format($sub_total,2); ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="5"></td>
|
<td colspan="5"></td>
|
||||||
@@ -214,7 +216,7 @@ if(isset($_GET['invoice_id'])){
|
|||||||
<tr>
|
<tr>
|
||||||
<td colspan="5"></td>
|
<td colspan="5"></td>
|
||||||
<td><strong>Tax</strong></td>
|
<td><strong>Tax</strong></td>
|
||||||
<td class="text-right">$<?php echo number_format($invoice_tax,2); ?></td>
|
<td class="text-right">$<?php echo number_format($total_tax,2); ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="5"></td>
|
<td colspan="5"></td>
|
||||||
|
|||||||
Reference in New Issue
Block a user