Feature/report refahi

This commit is contained in:
2025-08-30 10:26:05 +00:00
committed by AmirHossein Mahmoodi
parent 17b9fa3d8c
commit 82925cb082
59 changed files with 1076 additions and 524 deletions

View File

@@ -48,20 +48,10 @@ function DashboardPassengerOfficeComponent() {
Cell: ({ renderedCellValue }) => <Typography variant="body2">{renderedCellValue}</Typography>,
},
{
accessorFn: (row) => row.first_name,
id: "first_name",
header: t("PassengerBoss.first_name"),
enableColumnFilter: true,
datatype: "text",
filterFn: "contains",
columnFilterModeOptions: ["contains", "equals", "notEquals"],
Cell: ({ renderedCellValue }) => <Typography variant="body2">{renderedCellValue}</Typography>,
},
{
accessorFn: (row) => row.last_name,
id: "last_name",
header: t("PassengerBoss.last_name"),
enableColumnFilter: true,
accessorFn: (row) => (row.is_legal_person === 1 ? `${row.name}` : `${row.first_name} ${row.last_name}`),
id: "name",
header: t("PassengerBoss.name"),
enableColumnFilter: false,
datatype: "text",
filterFn: "contains",
columnFilterModeOptions: ["contains", "equals", "notEquals"],