diff --git a/src/frontend/src/pages/sales/SalesOrderShipmentDetail.tsx b/src/frontend/src/pages/sales/SalesOrderShipmentDetail.tsx index a40c1b9b49..af149a82aa 100644 --- a/src/frontend/src/pages/sales/SalesOrderShipmentDetail.tsx +++ b/src/frontend/src/pages/sales/SalesOrderShipmentDetail.tsx @@ -1,6 +1,6 @@ import { t } from '@lingui/macro'; import { Grid, Skeleton, Stack } from '@mantine/core'; -import { IconInfoCircle, IconPackages } from '@tabler/icons-react'; +import { IconBookmark, IconInfoCircle } from '@tabler/icons-react'; import { useMemo } from 'react'; import { useNavigate, useParams } from 'react-router-dom'; @@ -208,8 +208,8 @@ export default function SalesOrderShipmentDetail() { }, { name: 'items', - label: t`Assigned Items`, - icon: , + label: t`Allocated Stock`, + icon: , content: ( PartColumn({ part: record.part_detail }) }, + { + accessor: 'part_detail.description', + title: t`Description`, + hidden: showPartInfo != true, + sortable: false + }, + { + accessor: 'part_detail.IPN', + title: t`IPN`, + hidden: showPartInfo != true, + sortable: false + }, { accessor: 'serial', title: t`Serial Number`, diff --git a/src/frontend/tests/pages/pui_sales_order.spec.ts b/src/frontend/tests/pages/pui_sales_order.spec.ts index 6eafeb8693..da47f188d2 100644 --- a/src/frontend/tests/pages/pui_sales_order.spec.ts +++ b/src/frontend/tests/pages/pui_sales_order.spec.ts @@ -155,7 +155,7 @@ test('Sales Orders - Shipments', async ({ page }) => { // Click through the various tabs await page.getByRole('tab', { name: 'Attachments' }).click(); await page.getByRole('tab', { name: 'Notes' }).click(); - await page.getByRole('tab', { name: 'Assigned Items' }).click(); + await page.getByRole('tab', { name: 'Allocated Stock' }).click(); // Ensure assigned items table loads correctly await page.getByRole('cell', { name: 'BATCH-001' }).first().waitFor();