From 5f30dbf9a940e77f0c92a45ba3e69a13aad8fe49 Mon Sep 17 00:00:00 2001 From: "johnny@pittpc.com" Date: Fri, 6 Sep 2019 16:56:26 -0400 Subject: [PATCH] Removed Cancelled and added Viewed to Invoice. Client Links mirror their accompanied tabs in the client portal, minor UI fixes on ticket view, client view of ticket sorted tickets DESC via ticket_id --- clients.php | 2 +- invoice.php | 6 +----- invoices.php | 36 ++++++++++++++++++++++-------------- payments.php | 2 +- quote.php | 2 +- quotes.php | 2 +- recurring.php | 2 +- recurring_invoice.php | 5 ++++- settings-user.php | 40 ++++++++++++++++++++++++++++++++++++---- ticket.php | 21 ++++++++++++--------- tickets.php | 2 +- 11 files changed, 81 insertions(+), 39 deletions(-) diff --git a/clients.php b/clients.php index 4b32eba1..7a028448 100644 --- a/clients.php +++ b/clients.php @@ -115,7 +115,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); ?> - + diff --git a/invoice.php b/invoice.php index 0a783b4d..e16b532d 100644 --- a/invoice.php +++ b/invoice.php @@ -77,8 +77,6 @@ if(isset($_GET['invoice_id'])){ $invoice_badge_color = "secondary"; } - - ?> - -
diff --git a/invoices.php b/invoices.php index b4c2a3c4..6292e228 100644 --- a/invoices.php +++ b/invoices.php @@ -5,6 +5,9 @@ $row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('invoice_id') AS num FROM invoices WHERE invoice_status = 'Sent' AND company_id = $session_company_id")); $sent_count = $row['num']; + $row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('invoice_id') AS num FROM invoices WHERE invoice_status = 'Viewed' AND company_id = $session_company_id")); + $viewed_count = $row['num']; + $row = mysqli_fetch_assoc(mysqli_query($mysqli,"SELECT COUNT('invoice_id') AS num FROM invoices WHERE invoice_status = 'Partial' AND company_id = $session_company_id")); $partial_count = $row['num']; @@ -25,6 +28,10 @@ $row = mysqli_fetch_array($sql_total_sent); $total_sent = $row['total_sent']; + $sql_total_viewed = mysqli_query($mysqli,"SELECT SUM(invoice_amount) AS total_viewed FROM invoices WHERE invoice_status = 'Viewed' AND company_id = $session_company_id"); + $row = mysqli_fetch_array($sql_total_viewed); + $total_viewed = $row['total_viewed']; + $sql_total_cancelled = mysqli_query($mysqli,"SELECT SUM(invoice_amount) AS total_cancelled FROM invoices WHERE invoice_status = 'Cancelled' AND company_id = $session_company_id"); $row = mysqli_fetch_array($sql_total_cancelled); $total_cancelled = $row['total_cancelled']; @@ -122,6 +129,19 @@
+ + - - - +
@@ -224,7 +232,7 @@ - + $ diff --git a/payments.php b/payments.php index 254024fb..ca004d03 100644 --- a/payments.php +++ b/payments.php @@ -98,7 +98,7 @@ - + $ diff --git a/quote.php b/quote.php index fc1322d2..c66af33d 100644 --- a/quote.php +++ b/quote.php @@ -59,7 +59,7 @@ if(isset($_GET['quote_id'])){ Quotes diff --git a/quotes.php b/quotes.php index 061f00b8..eb44c4ed 100644 --- a/quotes.php +++ b/quotes.php @@ -114,7 +114,7 @@ - + $ diff --git a/recurring.php b/recurring.php index feae2775..a21db554 100644 --- a/recurring.php +++ b/recurring.php @@ -108,7 +108,7 @@ ly - + diff --git a/recurring_invoice.php b/recurring_invoice.php index 6efff65a..f3fd712c 100644 --- a/recurring_invoice.php +++ b/recurring_invoice.php @@ -54,7 +54,10 @@ if(isset($_GET['recurring_id'])){ - + + diff --git a/settings-user.php b/settings-user.php index 0beb2257..938ff390 100644 --- a/settings-user.php +++ b/settings-user.php @@ -3,7 +3,11 @@ @@ -13,7 +17,7 @@ $sql_recent_logins = mysqli_query($mysqli,"SELECT * FROM logs
-
+
User Details
@@ -69,8 +73,36 @@ $sql_recent_logins = mysqli_query($mysqli,"SELECT * FROM logs
-
-
Recent Logins
+
+
Recent Logs
+ + + + + + + + + + + + +
+
+ +
+
Recent Logins
diff --git a/ticket.php b/ticket.php index e6a24d09..1d70bfbe 100644 --- a/ticket.php +++ b/ticket.php @@ -60,6 +60,9 @@ if(isset($_GET['ticket_id'])){ +
@@ -132,26 +135,26 @@ if(isset($_GET['ticket_id'])){
- - + +
-

+

- +
- +