From 38b2a9423112987ec72e2511c469e11927ccad93 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Tue, 22 Jul 2025 15:46:17 -0400 Subject: [PATCH] Client Overview do not count Archived Clients entities and in services do not show services of archived clients --- includes/client_overview_side_nav.php | 18 +++++++++--------- services.php | 1 + 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/includes/client_overview_side_nav.php b/includes/client_overview_side_nav.php index 71022c2b..bdd81b8f 100644 --- a/includes/client_overview_side_nav.php +++ b/includes/client_overview_side_nav.php @@ -1,31 +1,31 @@ diff --git a/services.php b/services.php index 1bd881fa..3aeb59a3 100644 --- a/services.php +++ b/services.php @@ -36,6 +36,7 @@ $sql = mysqli_query( "SELECT SQL_CALC_FOUND_ROWS * FROM services LEFT JOIN clients ON client_id = service_client_id WHERE (service_name LIKE '%$q%' OR service_description LIKE '%$q%' OR service_category LIKE '%$q%' OR client_name LIKE '%$q%') + AND client_archived_at IS NULL $access_permission_query $client_query ORDER BY $sort $order LIMIT $record_from, $record_to"