diff --git a/src/app/(app)/stock-orders/[id]/page.tsx b/src/app/(app)/stock-orders/[id]/page.tsx index 0fe9e1e..2a5229c 100644 --- a/src/app/(app)/stock-orders/[id]/page.tsx +++ b/src/app/(app)/stock-orders/[id]/page.tsx @@ -144,6 +144,10 @@ export default function StockOrderDetailPage({ .getFullList({ filter: `purchase = "${id}"`, sort: "created", + // Expand the related stock_item so the row can show the + // SKU next to the description. The relation is a string + // ID otherwise; the page only reads `stock_item.sku`. + expand: "stock_item", }), ]); setPurchase(purchaseRes); @@ -540,6 +544,7 @@ export default function StockOrderDetailPage({ Description + SKU Ordered Cost / unit Received @@ -550,7 +555,7 @@ export default function StockOrderDetailPage({ {items.length === 0 ? ( No lines on this stock order. @@ -573,6 +578,9 @@ export default function StockOrderDetailPage({ )} + + {line.expand?.stock_item?.sku ?? "—"} + {ordered}