diff --git a/modules/helpdesk/lib/Module/Helpdesk/Service/BcODataGateway.php b/modules/helpdesk/lib/Module/Helpdesk/Service/BcODataGateway.php index 0448976..fe36541 100644 --- a/modules/helpdesk/lib/Module/Helpdesk/Service/BcODataGateway.php +++ b/modules/helpdesk/lib/Module/Helpdesk/Service/BcODataGateway.php @@ -599,7 +599,7 @@ class BcODataGateway { $url = $this->settingsGateway->buildEntityUrl(self::ENTITY_TICKETS_LV) . '?$top=500' - . '&$select=' . rawurlencode('No,Customer_No,Category_1_Code,Escalation_Code,Ticket_State,Last_Activity_Date,Created_On,Process_Stage,Process_Code,Support_User_Name') + . '&$select=' . rawurlencode('No,Description,Customer_No,Cust_Name,Category_1_Code,Escalation_Code,Ticket_State,Last_Activity_Date,Created_On,Process_Stage,Process_Code,Support_User_Name') . '&$orderby=' . rawurlencode('Created_On desc'); $response = $this->request('GET', $url); diff --git a/modules/helpdesk/lib/Module/Helpdesk/Service/DebitorDetailService.php b/modules/helpdesk/lib/Module/Helpdesk/Service/DebitorDetailService.php index 36f644e..25fa3df 100644 --- a/modules/helpdesk/lib/Module/Helpdesk/Service/DebitorDetailService.php +++ b/modules/helpdesk/lib/Module/Helpdesk/Service/DebitorDetailService.php @@ -1658,10 +1658,11 @@ class DebitorDetailService $agents[$normalizedUser]['open_ticket_details'][] = [ 'no' => trim((string) ($ticket['No'] ?? '')), + 'description' => trim((string) ($ticket['Description'] ?? '')), 'category' => trim((string) ($ticket['Category_1_Code'] ?? '')), 'age_hours' => $ageHours, 'critical' => $isCritical, - 'customer_name' => trim((string) ($ticket['Company_Contact_Name'] ?? '')), + 'customer_name' => trim((string) ($ticket['Cust_Name'] ?? (string) ($ticket['Company_Contact_Name'] ?? ''))), 'customer_no' => trim((string) ($ticket['Customer_No'] ?? '')), 'last_activity' => $lastActivityDisplay, ]; diff --git a/modules/helpdesk/pages/helpdesk/team/index(default).phtml b/modules/helpdesk/pages/helpdesk/team/index(default).phtml index cb0257f..b0766e0 100644 --- a/modules/helpdesk/pages/helpdesk/team/index(default).phtml +++ b/modules/helpdesk/pages/helpdesk/team/index(default).phtml @@ -26,6 +26,7 @@ $periodLabels = [ data-debitor-base-url="" data-label-ticket="" data-label-customer="" + data-label-description="" data-label-category="" data-label-last-activity="" > diff --git a/modules/helpdesk/web/css/helpdesk.css b/modules/helpdesk/web/css/helpdesk.css index b67fe54..0a985e2 100644 --- a/modules/helpdesk/web/css/helpdesk.css +++ b/modules/helpdesk/web/css/helpdesk.css @@ -219,6 +219,13 @@ color: var(--app-muted-color); } + .helpdesk-team-ticket-desc { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + max-width: 18ch; + } + /* Links */ .helpdesk-team-ticket-no a, .helpdesk-team-ticket-table td a { diff --git a/modules/helpdesk/web/js/helpdesk-team.js b/modules/helpdesk/web/js/helpdesk-team.js index 67ba0f1..de73bec 100644 --- a/modules/helpdesk/web/js/helpdesk-team.js +++ b/modules/helpdesk/web/js/helpdesk-team.js @@ -92,6 +92,9 @@ if (container) { } tr.appendChild(customerCell); + // Description (ellipsis) + tr.appendChild(h('td', 'helpdesk-team-ticket-desc', t.description || '—')); + // Category tr.appendChild(h('td', '', t.category || '—')); @@ -129,6 +132,7 @@ if (container) { const headRow = h('tr'); headRow.appendChild(h('th', '', container.dataset.labelTicket || 'Ticket')); headRow.appendChild(h('th', '', container.dataset.labelCustomer || 'Customer')); + headRow.appendChild(h('th', '', container.dataset.labelDescription || 'Description')); headRow.appendChild(h('th', '', container.dataset.labelCategory || 'Category')); headRow.appendChild(h('th', '', container.dataset.labelLastActivity || 'Last activity')); thead.appendChild(headRow);