add refer reason passenger boss and transportation assistance

This commit is contained in:
2024-05-28 14:16:00 +03:30
parent bb9f5075ef
commit 77be6b0e2c
2 changed files with 8 additions and 8 deletions

View File

@@ -271,16 +271,16 @@ function DashboardPassengerOfficeComponent() {
),
},
{
accessorFn: (row) => row.refer_reason,
id: "refer_reason",
accessorFn: (row) => row.latest_history.expert_description,
id: "latest_history.expert_description",
header: t("PassengerBoss.refer_reason"),
enableColumnFilter: false,
datatype: "text",
filterFn: "contains",
columnFilterModeOptions: ["contains", "equals", "notEquals"],
Cell: ({renderedCellValue, row}) => {
Cell: ({row}) => {
return (
<Typography variant="body2">{renderedCellValue}</Typography>
<Typography variant="body2">{row.original.latest_history.action === 'refer'? row.original.latest_history.expert_description : null}</Typography>
)
},
},

View File

@@ -413,16 +413,16 @@ function DashboardTransportationAssistanceComponent() {
),
},
{
accessorFn: (row) => row.refer_reason,
id: "refer_reason",
accessorFn: (row) => row.latest_history.expert_description,
id: "latest_history.expert_description",
header: t("TransportationAssistance.refer_reason"),
enableColumnFilter: false,
datatype: "text",
filterFn: "contains",
columnFilterModeOptions: ["contains", "equals", "notEquals"],
Cell: ({renderedCellValue, row}) => {
Cell: ({row}) => {
return (
<Typography variant="body2">{renderedCellValue}</Typography>
<Typography variant="body2">{row.original.latest_history.action === 'refer'? row.original.latest_history.expert_description : null}</Typography>
)
},
},