diff --git a/app/Models/ThzMasterNotesModel.php b/app/Models/ThzMasterNotesModel.php index 413781df..ac970b67 100644 --- a/app/Models/ThzMasterNotesModel.php +++ b/app/Models/ThzMasterNotesModel.php @@ -105,7 +105,7 @@ class ThzMasterNotesModel extends Model AND LOWER(thz_master_notes.notes_by) = 'user' WHERE thz_master_notes.thz_id = ". $integer_ticket_id ." $ticketTypeFilter - ORDER BY thz_master_notes.created_at ASC"; + ORDER BY thz_master_notes.created_at DESC"; $result = $this->db->query($notes_sql)->getResultArray(); diff --git a/app/Views/thz_list.php b/app/Views/thz_list.php index e711f27a..b56b45fd 100644 --- a/app/Views/thz_list.php +++ b/app/Views/thz_list.php @@ -80,6 +80,11 @@ tbody tr td:last-child { white-space: nowrap !important; } +.maincard{ + margin-top:0 !important; + padding-top: 0 !important; +} + .col-12 { max-width: 98% !important; @@ -122,8 +127,8 @@ td .text-muted {
-
-
+
+

Ticket List

@@ -155,7 +160,10 @@ td .text-muted {
- + + @@ -259,22 +267,23 @@ td .text-muted {
+
+ + +
+ +
-
- - -
- - - + +
+ +
- + - +
@@ -368,6 +378,11 @@ td .text-muted { myModal.show(); } + function resetTicket(){ + var form = document.getElementById('ticketForm'); + form.reset(); + } + function submitTicket() { var form = document.getElementById('ticketForm'); @@ -512,6 +527,19 @@ td .text-muted { var policyId = selectedOption.getAttribute("data-id"); document.getElementById('policy_id').value = policyId || ""; } + + function hideandshowpolicy() { + var select = document.getElementById('ticket_type').value; + var policyContainer = document.getElementById('policy_container'); + + if (select === 'Service') { + policyContainer.style.display = "block"; // show + } else { + policyContainer.style.display = "none"; // hide + document.getElementById('policy_no').value = ""; + document.getElementById('policy_id').value = ""; + } + }