diff --git a/src/frontend/src/pages/part/pricing/PurchaseHistoryPanel.tsx b/src/frontend/src/pages/part/pricing/PurchaseHistoryPanel.tsx index 60b3f6fb3a..74c828a26f 100644 --- a/src/frontend/src/pages/part/pricing/PurchaseHistoryPanel.tsx +++ b/src/frontend/src/pages/part/pricing/PurchaseHistoryPanel.tsx @@ -4,6 +4,7 @@ import { Group, SimpleGrid, Text } from '@mantine/core'; import { type ReactNode, useCallback, useMemo } from 'react'; import { ApiEndpoints } from '@lib/enums/ApiEndpoints'; +import { ModelType } from '@lib/enums/ModelType'; import { apiUrl } from '@lib/functions/Api'; import useTable from '@lib/hooks/UseTable'; import type { TableColumn } from '@lib/types/Tables'; @@ -115,7 +116,9 @@ export default function PurchaseHistoryPanel({ order_detail: true, has_pricing: true, order_complete: true - } + }, + modelType: ModelType.purchaseorder, + modelField: 'order' }} /> {purchaseHistoryData.length > 0 ? ( diff --git a/src/frontend/src/pages/part/pricing/SaleHistoryPanel.tsx b/src/frontend/src/pages/part/pricing/SaleHistoryPanel.tsx index cdd6c4b224..7ae4f1ba78 100644 --- a/src/frontend/src/pages/part/pricing/SaleHistoryPanel.tsx +++ b/src/frontend/src/pages/part/pricing/SaleHistoryPanel.tsx @@ -4,6 +4,7 @@ import { SimpleGrid } from '@mantine/core'; import { type ReactNode, useMemo } from 'react'; import { ApiEndpoints } from '@lib/enums/ApiEndpoints'; +import { ModelType } from '@lib/enums/ModelType'; import { apiUrl } from '@lib/functions/Api'; import useTable from '@lib/hooks/UseTable'; import type { TableColumn } from '@lib/types/Tables'; @@ -76,7 +77,9 @@ export default function SaleHistoryPanel({ customer_detail: true, has_pricing: true, order_complete: true - } + }, + modelType: ModelType.salesorder, + modelField: 'order' }} /> {saleHistoryData.length > 0 ? (