From b39ffeb3b24d44440f751bb01833fc1b30ad464e Mon Sep 17 00:00:00 2001 From: Aishwarya Srivastava Date: Wed, 5 Mar 2025 13:58:12 +0530 Subject: [PATCH] NTP-39858| Agency operations support for 1 to 30 field (#1391) * NTP-39858| Agency operations support for 1 to 30 field * NTP-39858| Agency operations support for 1 to 30 field * NTP-39858| Agency operations support for 1 to 30 field --- src/pages/AgencyCapping/components/Table/index.tsx | 9 +++++++++ .../AgencyPincodeMapping/components/DataTable/index.tsx | 1 + src/pages/AgencyPincodeMapping/types.ts | 1 + 3 files changed, 11 insertions(+) diff --git a/src/pages/AgencyCapping/components/Table/index.tsx b/src/pages/AgencyCapping/components/Table/index.tsx index 991502c7..45c01734 100644 --- a/src/pages/AgencyCapping/components/Table/index.tsx +++ b/src/pages/AgencyCapping/components/Table/index.tsx @@ -23,6 +23,15 @@ export const AGENCY_CAPPING_COL_DEFS: NaviTableColumnDef[] = [ size: 180, tooltip: true }, + { + accessorKey: 'cappingValueDpd1To30', + header: 'DPD 1-30', + size: 180, + cell: info => { + return info.getValue() === null ? 'No capping' : info.getValue(); + }, + tooltip: true + }, { accessorKey: 'cappingValueDpd31To90', header: 'DPD 31-90', diff --git a/src/pages/AgencyPincodeMapping/components/DataTable/index.tsx b/src/pages/AgencyPincodeMapping/components/DataTable/index.tsx index 22d2d819..5822fe82 100644 --- a/src/pages/AgencyPincodeMapping/components/DataTable/index.tsx +++ b/src/pages/AgencyPincodeMapping/components/DataTable/index.tsx @@ -36,6 +36,7 @@ const columnDefs = [ cellRenderer: (params: ICellRendererParams) => `${params?.data?.serviceablePincodesInDistrict}/${params?.data?.totalPincodesInDistrict}` }, + { field: 'serviceablePincodesInDpd1To30', headerName: '1-30 bucket' }, { field: 'serviceablePincodesInDpd31To90', headerName: '31-90 bucket' }, { field: 'serviceablePincodesInDpd90Plus', headerName: '90+ bucket' } ]; diff --git a/src/pages/AgencyPincodeMapping/types.ts b/src/pages/AgencyPincodeMapping/types.ts index 8a937cf4..c6433d65 100644 --- a/src/pages/AgencyPincodeMapping/types.ts +++ b/src/pages/AgencyPincodeMapping/types.ts @@ -14,6 +14,7 @@ export interface Serviceability { state: string; district: string; serviceablePincodesInDistrict: string; + serviceablePincodesInDpd1To30: string; serviceablePincodesInDpd31To90: string; serviceablePincodesInDpd90Plus: string; }