add statement count coloumn in data table

This commit is contained in:
2024-01-06 13:55:24 +03:30
parent 9ed3e1a8b0
commit 7b9dcbea00
7 changed files with 90 additions and 0 deletions

View File

@@ -196,6 +196,7 @@
"NavganProvinceManager": {
"name": "نام",
"id": "کد یکتا",
"statement_count": "تعداد صورت وضعیت",
"shenase_meli": "شناسه ملی",
"is_legal_person": "نوع شخص",
"haghighi": "حقیقی",
@@ -219,6 +220,7 @@
},
"PassengerBoss": {
"name": "نام",
"statement_count": "تعداد صورت وضعیت",
"id": "کد یکتا",
"score": "رتبه",
"navgan_capacity": "ظرفیت",
@@ -277,6 +279,7 @@
"NavganLoanManagement": {
"name": "نام",
"id": "کد یکتا",
"statement_count": "تعداد صورت وضعیت",
"score": "رتبه",
"navgan_capacity": "ظرفیت",
"manufacture_date": "سال ساخت",
@@ -322,6 +325,7 @@
"TransportationAssistance": {
"name": "نام",
"id": "کد یکتا",
"statement_count": "تعداد صورت وضعیت",
"shenase_meli": "شناسه ملی",
"is_legal_person": "نوع شخص",
"haghighi": "حقیقی",
@@ -357,6 +361,7 @@
},
"MachinaryOffice": {
"name": "نام",
"statement_count": "تعداد صورت وضعیت",
"id": "کد یکتا",
"score": "رتبه",
"navgan_capacity": "ظرفیت",
@@ -609,6 +614,7 @@
},
"LoanHistory": {
"id": "کد یکتا",
"statement_count": "تعداد صورت وضعیت",
"name": "نام",
"score": "رتبه",
"navgan_capacity": "ظرفیت",

View File

@@ -162,6 +162,20 @@ function DashboardLoanHistoryComponent() {
<Typography variant="body2">{renderedCellValue}</Typography>
),
},
{
accessorFn: (row) => row.statement_count,
id: "statement_count",
header: t("LoanHistory.statement_count"),
enableColumnFilter: true,
datatype: "numeric",
filterFn: "equals",
columnFilterModeOptions: [
"equals",
],
Cell: ({renderedCellValue}) => (
<Typography variant="body2">{renderedCellValue}</Typography>
),
},
{
accessorFn: (row) => row.score,
id: "score",

View File

@@ -163,6 +163,20 @@ function DashboardMachinaryOfficeComponent() {
<Typography variant="body2">{renderedCellValue}</Typography>
),
},
{
accessorFn: (row) => row.statement_count,
id: "statement_count",
header: t("MachinaryOffice.statement_count"),
enableColumnFilter: true,
datatype: "numeric",
filterFn: "equals",
columnFilterModeOptions: [
"equals",
],
Cell: ({renderedCellValue}) => (
<Typography variant="body2">{renderedCellValue}</Typography>
),
},
{
accessorFn: (row) => row.score,
id: "score",

View File

@@ -163,6 +163,20 @@ function DashboardNavganLoanManagementComponent() {
<Typography variant="body2">{renderedCellValue}</Typography>
),
},
{
accessorFn: (row) => row.statement_count,
id: "statement_count",
header: t("NavganLoanManagement.statement_count"),
enableColumnFilter: true,
datatype: "numeric",
filterFn: "equals",
columnFilterModeOptions: [
"equals",
],
Cell: ({renderedCellValue}) => (
<Typography variant="body2">{renderedCellValue}</Typography>
),
},
{
accessorFn: (row) => row.score,
id: "score",

View File

@@ -164,6 +164,20 @@ function DashboardNavganProvinceManagerComponent() {
<Typography variant="body2">{renderedCellValue}</Typography>
),
},
{
accessorFn: (row) => row.statement_count,
id: "statement_count",
header: t("NavganProvinceManager.statement_count"),
enableColumnFilter: true,
datatype: "numeric",
filterFn: "equals",
columnFilterModeOptions: [
"equals",
],
Cell: ({renderedCellValue}) => (
<Typography variant="body2">{renderedCellValue}</Typography>
),
},
{
accessorFn: (row) => row.vehicle_type,
id: "vehicle_type",

View File

@@ -164,6 +164,20 @@ function DashboardPassengerOfficeComponent() {
<Typography variant="body2">{renderedCellValue}</Typography>
),
},
{
accessorFn: (row) => row.statement_count,
id: "statement_count",
header: t("PassengerBoss.statement_count"),
enableColumnFilter: true,
datatype: "numeric",
filterFn: "equals",
columnFilterModeOptions: [
"equals",
],
Cell: ({renderedCellValue}) => (
<Typography variant="body2">{renderedCellValue}</Typography>
),
},
{
accessorFn: (row) => row.score,
id: "score",

View File

@@ -164,6 +164,20 @@ function DashboardTransportationAssistanceComponent() {
<Typography variant="body2">{renderedCellValue}</Typography>
),
},
{
accessorFn: (row) => row.statement_count,
id: "statement_count",
header: t("TransportationAssistance.statement_count"),
enableColumnFilter: true,
datatype: "numeric",
filterFn: "equals",
columnFilterModeOptions: [
"equals",
],
Cell: ({renderedCellValue}) => (
<Typography variant="body2">{renderedCellValue}</Typography>
),
},
{
accessorFn: (row) => row.vehicle_type,
id: "vehicle_type",