diff --git a/guest/guest_post.php b/guest/guest_post.php
index fffe3088..07870e8e 100644
--- a/guest/guest_post.php
+++ b/guest/guest_post.php
@@ -365,6 +365,9 @@ if (isset($_GET['export_quote_pdf'])) {
';
// Load items
+ $sub_total = 0;
+ $total_tax = 0;
+
$sql_items = mysqli_query($mysqli, "SELECT * FROM invoice_items WHERE item_quote_id = $quote_id ORDER BY item_order ASC");
while ($item = mysqli_fetch_array($sql_items)) {
$name = $item['item_name'];
@@ -585,6 +588,9 @@ if (isset($_GET['export_invoice_pdf'])) {
';
// Load items
+ $sub_total = 0;
+ $total_tax = 0;
+
$sql_items = mysqli_query($mysqli, "SELECT * FROM invoice_items WHERE item_invoice_id = $invoice_id ORDER BY item_order ASC");
while ($item = mysqli_fetch_array($sql_items)) {
$name = $item['item_name'];
diff --git a/user/post/invoice.php b/user/post/invoice.php
index 94df534b..ef28ca90 100644
--- a/user/post/invoice.php
+++ b/user/post/invoice.php
@@ -2066,7 +2066,7 @@ if (isset($_GET['export_invoice_pdf'])) {
';
if (!empty($company_logo) && file_exists("../uploads/settings/$company_logo")) {
- $html .= ' ';
+ $html .= ' ';
}
$html .= ' |
@@ -2117,6 +2117,9 @@ if (isset($_GET['export_invoice_pdf'])) {
|
';
// Load items
+ $sub_total = 0;
+ $total_tax = 0;
+
$sql_items = mysqli_query($mysqli, "SELECT * FROM invoice_items WHERE item_invoice_id = $invoice_id ORDER BY item_order ASC");
while ($item = mysqli_fetch_array($sql_items)) {
$name = $item['item_name'];
diff --git a/user/post/quote.php b/user/post/quote.php
index fb566ac4..608376ec 100644
--- a/user/post/quote.php
+++ b/user/post/quote.php
@@ -680,7 +680,7 @@ if (isset($_GET['export_quote_pdf'])) {
';
if (!empty($company_logo) && file_exists("../uploads/settings/$company_logo")) {
- $html .= ' ';
+ $html .= ' ';
}
$html .= ' |
@@ -734,6 +734,9 @@ if (isset($_GET['export_quote_pdf'])) {
|
';
// Load items
+ $sub_total = 0;
+ $total_tax = 0;
+
$sql_items = mysqli_query($mysqli, "SELECT * FROM invoice_items WHERE item_quote_id = $quote_id ORDER BY item_order ASC");
while ($item = mysqli_fetch_array($sql_items)) {
$name = $item['item_name'];