mirror of
https://github.com/inventree/InvenTree.git
synced 2026-09-01 09:41:22 +00:00
Order click-through on pricing panel (#12307)
This commit is contained in:
@@ -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 ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user