diff --git a/src/frontend/src/tables/purchasing/ManufacturerPartParametricTable.tsx b/src/frontend/src/tables/purchasing/ManufacturerPartParametricTable.tsx index b8cfdfa16a..d6c06ab75e 100644 --- a/src/frontend/src/tables/purchasing/ManufacturerPartParametricTable.tsx +++ b/src/frontend/src/tables/purchasing/ManufacturerPartParametricTable.tsx @@ -1,7 +1,9 @@ import { ApiEndpoints, ModelType } from '@lib/index'; import type { TableFilter } from '@lib/types/Filters'; import type { TableColumn } from '@lib/types/Tables'; +import { t } from '@lingui/core/macro'; import { type ReactNode, useMemo } from 'react'; +import { CompanyColumn, PartColumn } from '../ColumnRenderers'; import ParametricDataTable from '../general/ParametricDataTable'; export default function ManufacturerPartParametricTable({ @@ -10,11 +12,46 @@ export default function ManufacturerPartParametricTable({ queryParams?: Record; }): ReactNode { const customColumns: TableColumn[] = useMemo(() => { - return []; + return [ + PartColumn({ + switchable: false + }), + { + accessor: 'part_detail.IPN', + title: t`IPN`, + sortable: false, + switchable: true + }, + { + accessor: 'manufacturer', + sortable: true, + render: (record: any) => ( + + ) + }, + { + accessor: 'MPN', + title: t`MPN`, + sortable: true + } + ]; }, []); const customFilters: TableFilter[] = useMemo(() => { - return []; + return [ + { + name: 'part_active', + label: t`Active Part`, + description: t`Show manufacturer parts for active internal parts.`, + type: 'boolean' + }, + { + name: 'manufacturer_active', + label: t`Active Manufacturer`, + description: t`Show manufacturer parts for active manufacturers.`, + type: 'boolean' + } + ]; }, []); return (