From a7b6e6012a18993a63f2a478a0a8873a86d47621 Mon Sep 17 00:00:00 2001 From: Jon Spight Date: Fri, 29 Nov 2024 21:39:35 +0000 Subject: [PATCH] Added assigned column to csv --- src/pages/Office/MoveQueue/MoveQueue.jsx | 3 +++ .../Office/PaymentRequestQueue/PaymentRequestQueue.jsx | 3 +++ .../ServicesCounselingQueue/ServicesCounselingQueue.jsx | 6 ++++++ 3 files changed, 12 insertions(+) diff --git a/src/pages/Office/MoveQueue/MoveQueue.jsx b/src/pages/Office/MoveQueue/MoveQueue.jsx index 9ad0a6eb7bc..3811d48226e 100644 --- a/src/pages/Office/MoveQueue/MoveQueue.jsx +++ b/src/pages/Office/MoveQueue/MoveQueue.jsx @@ -177,6 +177,9 @@ export const columns = (moveLockFlag, isQueueManagementEnabled, showBranchFilter { id: 'assignedTo', isFilterable: true, + exportValue: (row) => { + return row.assignedTo ? `${row.assignedTo?.lastName}, ${row.assignedTo?.firstName}` : ''; + }, }, ), ); diff --git a/src/pages/Office/PaymentRequestQueue/PaymentRequestQueue.jsx b/src/pages/Office/PaymentRequestQueue/PaymentRequestQueue.jsx index 74511206562..b18fc8c3533 100644 --- a/src/pages/Office/PaymentRequestQueue/PaymentRequestQueue.jsx +++ b/src/pages/Office/PaymentRequestQueue/PaymentRequestQueue.jsx @@ -176,6 +176,9 @@ export const columns = (moveLockFlag, isQueueManagementEnabled, showBranchFilter { id: 'assignedTo', isFilterable: true, + exportValue: (row) => { + return row.assignedTo ? `${row.assignedTo?.lastName}, ${row.assignedTo?.firstName}` : ''; + }, }, ), ); diff --git a/src/pages/Office/ServicesCounselingQueue/ServicesCounselingQueue.jsx b/src/pages/Office/ServicesCounselingQueue/ServicesCounselingQueue.jsx index 29b8ff9623b..1e6c8b9654a 100644 --- a/src/pages/Office/ServicesCounselingQueue/ServicesCounselingQueue.jsx +++ b/src/pages/Office/ServicesCounselingQueue/ServicesCounselingQueue.jsx @@ -218,6 +218,9 @@ export const counselingColumns = (moveLockFlag, originLocationList, supervisor, { id: 'assignedTo', isFilterable: true, + exportValue: (row) => { + return row.assignedTo ? `${row.assignedTo?.lastName}, ${row.assignedTo?.firstName}` : ''; + }, }, ), ); @@ -408,6 +411,9 @@ export const closeoutColumns = ( { id: 'assignedTo', isFilterable: true, + exportValue: (row) => { + return row.assignedTo ? `${row.assignedTo?.lastName}, ${row.assignedTo?.firstName}` : ''; + }, }, ), );