From c19ebc25e92cda6e38a6eec095b1f1f272a919c6 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 5 Apr 2019 18:12:08 -0400 Subject: [PATCH] subtotal and tax total now woking in invoices --- invoice.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/invoice.php b/invoice.php index 6e87a880..fb25387c 100644 --- a/invoice.php +++ b/invoice.php @@ -165,6 +165,8 @@ if(isset($_GET['invoice_id'])){ $invoice_item_subtotal = $row['invoice_item_price']; $invoice_item_tax = $row['invoice_item_tax']; $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'])){ SubTotal - $ + $ @@ -214,7 +216,7 @@ if(isset($_GET['invoice_id'])){ Tax - $ + $