From 0bff350463f904d44187adf5c4da8e276bb77ded Mon Sep 17 00:00:00 2001 From: johnnyq Date: Tue, 10 Dec 2024 20:40:47 -0500 Subject: [PATCH] Add Recurring tickets list to contact details as well as the ability to Create and Edit Recurring contacts all witihin contact details --- client_contact_details.php | 82 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/client_contact_details.php b/client_contact_details.php index eabe6741..1599b941 100644 --- a/client_contact_details.php +++ b/client_contact_details.php @@ -77,6 +77,14 @@ if (isset($_GET['contact_id'])) { WHERE ticket_contact_id = $contact_id ORDER BY ticket_id DESC"); $ticket_count = mysqli_num_rows($sql_related_tickets); + // Related Recurring Tickets Query + $sql_related_recurring_tickets = mysqli_query($mysqli, "SELECT * FROM scheduled_tickets + WHERE scheduled_ticket_contact_id = $contact_id + ORDER BY scheduled_ticket_next_run DESC" + ); + $recurring_ticket_count = mysqli_num_rows($sql_related_recurring_tickets); + + // Tags - many to many relationship $contact_tag_name_display_array = array(); $contact_tag_id_array = array(); @@ -237,6 +245,10 @@ if (isset($_GET['contact_id'])) { New Ticket + + New Recurring Ticket + + New Note @@ -633,6 +645,71 @@ if (isset($_GET['contact_id'])) { +
"> +
+

Recurring Tickets

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
SubjectPriorityFrequencyNext Run
+ +
+
+
+
+
">

Related Tickets

@@ -1044,6 +1121,8 @@ if (isset($_GET['contact_id'])) { }); + +