-
diff --git a/guest_view_quote.php b/guest_view_quote.php
index dafba0df..15110605 100644
--- a/guest_view_quote.php
+++ b/guest_view_quote.php
@@ -55,6 +55,7 @@ if(isset($_GET['quote_id'], $_GET['url_key'])){
$config_company_phone = substr($row['config_company_phone'],0,3)."-".substr($row['config_company_phone'],3,3)."-".substr($row['config_company_phone'],6,4);
}
$config_company_email = $row['config_company_email'];
+ $config_invoice_logo = $row['config_invoice_logo'];
//Mark viewed in history
mysqli_query($mysqli,"INSERT INTO history SET history_date = CURDATE(), history_status = '$quote_status', history_description = 'Quote viewed', history_created_at = NOW(), quote_id = $quote_id, company_id = $company_id");
@@ -99,6 +100,12 @@ if(isset($_GET['quote_id'], $_GET['url_key'])){
+
+
+

+
+
+
@@ -179,7 +186,7 @@ if(isset($_GET['quote_id'], $_GET['url_key'])){
$item_subtotal = $row['item_price'];
$item_tax = $row['item_tax'];
$item_total = $row['item_total'];
- $total_tax = $item_tax + $invoice_tax;
+ $total_tax = $item_tax + $total_tax;
$sub_total = $item_price * $item_quantity + $sub_total;
?>
diff --git a/index.php b/index.php
index e92a7b40..f8472bdc 100644
--- a/index.php
+++ b/index.php
@@ -1,5 +1,5 @@
-
+
-
@@ -11,6 +11,10 @@
Blank Page
- This is a great starting point for new custom pages.
+
+
+
+
+
\ No newline at end of file
diff --git a/invoice.php b/invoice.php
index 971145bd..4be1badc 100644
--- a/invoice.php
+++ b/invoice.php
@@ -19,6 +19,7 @@ if(isset($_GET['invoice_id'])){
$invoice_due = $row['invoice_due'];
$invoice_amount = $row['invoice_amount'];
$invoice_note = $row['invoice_note'];
+ $invoice_url_key = $row['invoice_url_key'];
$category_id = $row['category_id'];
$client_id = $row['client_id'];
$client_name = $row['client_name'];
@@ -50,7 +51,7 @@ if(isset($_GET['invoice_id'])){
//check to see if overdue
if($invoice_status !== "Paid" AND $invoice_status !== "Draft" AND $invoice_status !== "Cancelled"){
- $unixtime_invoice_due = strtotime($invoice_due);
+ $unixtime_invoice_due = strtotime($invoice_due) + 86400;
if($unixtime_invoice_due < time()){
$invoice_overdue = "Overdue";
}
@@ -105,11 +106,12 @@ if(isset($_GET['invoice_id'])){