From d8bb6dd4c1ee9e7f01b5e9992695278bc84409f6 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Wed, 10 Apr 2024 14:06:25 -0400 Subject: [PATCH] Moved back Recurring Ticket, Invoices and Expense back to the main side nav and added bagdge counters for them. They were just to buried and were used often --- expenses.php | 4 ---- inc_all.php | 11 +++++++++++ invoices.php | 4 ---- recurring_expenses.php | 4 ++-- recurring_invoices.php | 3 +-- side_nav.php | 39 ++++++++++++++++++++++++++++++++++++--- 6 files changed, 50 insertions(+), 15 deletions(-) diff --git a/expenses.php b/expenses.php index 93106df2..7565f318 100644 --- a/expenses.php +++ b/expenses.php @@ -24,9 +24,6 @@ $sql = mysqli_query( $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); -$row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT COUNT('recurring_expense_id') AS num FROM recurring_expenses WHERE recurring_expense_archived_at IS NULL")); -$recurring_expense_count = $row['num']; - ?>
@@ -51,7 +48,6 @@ $recurring_expense_count = $row['num'];
- Recurring |
diff --git a/recurring_expenses.php b/recurring_expenses.php index b2517640..3cc3696b 100644 --- a/recurring_expenses.php +++ b/recurring_expenses.php @@ -28,9 +28,9 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
-

Expenses / Recurring

+

Recurring Expenses

- +
diff --git a/recurring_invoices.php b/recurring_invoices.php index 25a2efd5..e27154d4 100644 --- a/recurring_invoices.php +++ b/recurring_invoices.php @@ -26,7 +26,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));

Recurring Invoices

- +
@@ -44,7 +44,6 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
diff --git a/side_nav.php b/side_nav.php index ade8c9c4..65ae5a79 100644 --- a/side_nav.php +++ b/side_nav.php @@ -26,7 +26,7 @@ = 2 && $config_module_enable_ticketing == 1) { ?> + + +