Order click-through on pricing panel (#12307)

This commit is contained in:
Oliver
2026-07-06 22:09:02 +10:00
committed by GitHub
parent e6a12564f3
commit 436bfed234
2 changed files with 8 additions and 2 deletions
@@ -4,6 +4,7 @@ import { Group, SimpleGrid, Text } from '@mantine/core';
import { type ReactNode, useCallback, useMemo } from 'react'; import { type ReactNode, useCallback, useMemo } from 'react';
import { ApiEndpoints } from '@lib/enums/ApiEndpoints'; import { ApiEndpoints } from '@lib/enums/ApiEndpoints';
import { ModelType } from '@lib/enums/ModelType';
import { apiUrl } from '@lib/functions/Api'; import { apiUrl } from '@lib/functions/Api';
import useTable from '@lib/hooks/UseTable'; import useTable from '@lib/hooks/UseTable';
import type { TableColumn } from '@lib/types/Tables'; import type { TableColumn } from '@lib/types/Tables';
@@ -115,7 +116,9 @@ export default function PurchaseHistoryPanel({
order_detail: true, order_detail: true,
has_pricing: true, has_pricing: true,
order_complete: true order_complete: true
} },
modelType: ModelType.purchaseorder,
modelField: 'order'
}} }}
/> />
{purchaseHistoryData.length > 0 ? ( {purchaseHistoryData.length > 0 ? (
@@ -4,6 +4,7 @@ import { SimpleGrid } from '@mantine/core';
import { type ReactNode, useMemo } from 'react'; import { type ReactNode, useMemo } from 'react';
import { ApiEndpoints } from '@lib/enums/ApiEndpoints'; import { ApiEndpoints } from '@lib/enums/ApiEndpoints';
import { ModelType } from '@lib/enums/ModelType';
import { apiUrl } from '@lib/functions/Api'; import { apiUrl } from '@lib/functions/Api';
import useTable from '@lib/hooks/UseTable'; import useTable from '@lib/hooks/UseTable';
import type { TableColumn } from '@lib/types/Tables'; import type { TableColumn } from '@lib/types/Tables';
@@ -76,7 +77,9 @@ export default function SaleHistoryPanel({
customer_detail: true, customer_detail: true,
has_pricing: true, has_pricing: true,
order_complete: true order_complete: true
} },
modelType: ModelType.salesorder,
modelField: 'order'
}} }}
/> />
{saleHistoryData.length > 0 ? ( {saleHistoryData.length > 0 ? (