From 3e14938a530a5a4b62bfee544a5669e26e78ce8d Mon Sep 17 00:00:00 2001 From: johnnyq Date: Mon, 8 Apr 2024 17:35:21 -0400 Subject: [PATCH] Add Open Quotes to the Side Nav --- inc_all.php | 5 +++++ side_nav.php | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/inc_all.php b/inc_all.php index 21a217a8..e772d4a8 100644 --- a/inc_all.php +++ b/inc_all.php @@ -24,6 +24,11 @@ $num_active_projects = $row['num']; $row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT COUNT('invoice_id') AS num FROM invoices WHERE (invoice_status = 'Sent' OR invoice_status = 'Viewed' OR invoice_status = 'Partial') AND invoice_archived_at IS NULL")); $num_open_invoices = $row['num']; +// Open Quotes Count +$row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT COUNT('quote_id') AS num FROM quotes WHERE (quote_status = 'Sent' OR quote_status = 'Viewed') AND quote_archived_at IS NULL")); +$num_open_quotes = $row['num']; + + require_once "side_nav.php"; require_once "inc_wrapper.php"; diff --git a/side_nav.php b/side_nav.php index a2e2bb74..42964722 100644 --- a/side_nav.php +++ b/side_nav.php @@ -81,7 +81,13 @@ echo "active"; } ?>"> -

Quotes

+

+ Quotes + + + +