diff --git a/src/orders/components/OrderFulfillment/OrderFulfillment.tsx b/src/orders/components/OrderFulfillment/OrderFulfillment.tsx index 5fc0a42b1..f0445f870 100644 --- a/src/orders/components/OrderFulfillment/OrderFulfillment.tsx +++ b/src/orders/components/OrderFulfillment/OrderFulfillment.tsx @@ -43,6 +43,11 @@ const useStyles = makeStyles( textAlign: "center", width: 120 }, + colSku: { + textAlign: "right", + textOverflow: "ellipsis", + width: 120 + }, colTotal: { textAlign: "right", width: 120 @@ -165,6 +170,12 @@ const OrderFulfillment: React.FC = props => { /> + + + = props => { > {maybe(() => line.orderLine.productName) || } + + {line?.orderLine.productSku || } + - {maybe(() => line.quantity) || } + {line?.quantity || } {maybe(() => line.orderLine.unitPrice.gross) ? ( diff --git a/src/orders/components/OrderUnfulfilledItems/OrderUnfulfilledItems.tsx b/src/orders/components/OrderUnfulfilledItems/OrderUnfulfilledItems.tsx index b00e30df7..47634f897 100644 --- a/src/orders/components/OrderUnfulfilledItems/OrderUnfulfilledItems.tsx +++ b/src/orders/components/OrderUnfulfilledItems/OrderUnfulfilledItems.tsx @@ -40,6 +40,11 @@ const useStyles = makeStyles( textAlign: "center", width: 120 }, + colSku: { + textAlign: "right", + textOverflow: "ellipsis", + width: 120 + }, colTotal: { textAlign: "right", width: 120 @@ -97,6 +102,12 @@ const OrderUnfulfilledItems: React.FC = props => { /> + + + = props => { > {maybe(() => line.productName) || } + + {line?.productSku || } + {maybe(() => line.quantity - line.quantityFulfilled) || ( diff --git a/src/storybook/__snapshots__/Stories.test.ts.snap b/src/storybook/__snapshots__/Stories.test.ts.snap index ae0c2bc8f..52aaa5a23 100644 --- a/src/storybook/__snapshots__/Stories.test.ts.snap +++ b/src/storybook/__snapshots__/Stories.test.ts.snap @@ -66148,6 +66148,12 @@ exports[`Storyshots Views / Orders / Order details cancelled 1`] = ` Product + + SKU + + + 59-1337 + @@ -66270,6 +66281,12 @@ exports[`Storyshots Views / Orders / Order details cancelled 1`] = ` Product + + SKU + + + 5-1337 + @@ -66414,6 +66436,12 @@ exports[`Storyshots Views / Orders / Order details cancelled 1`] = ` Product + + SKU + + + 5-1337 + @@ -67011,6 +67044,12 @@ exports[`Storyshots Views / Orders / Order details default 1`] = ` Product + + SKU + + + 59-1337 + @@ -67174,6 +67218,12 @@ exports[`Storyshots Views / Orders / Order details default 1`] = ` Product + + SKU + + + 5-1337 + @@ -67359,6 +67414,12 @@ exports[`Storyshots Views / Orders / Order details default 1`] = ` Product + + SKU + + + 5-1337 + @@ -68037,6 +68103,12 @@ exports[`Storyshots Views / Orders / Order details fulfilled 1`] = ` Product + + SKU + + + 59-1337 + @@ -68200,6 +68277,12 @@ exports[`Storyshots Views / Orders / Order details fulfilled 1`] = ` Product + + SKU + + + 5-1337 + @@ -68385,6 +68473,12 @@ exports[`Storyshots Views / Orders / Order details fulfilled 1`] = ` Product + + SKU + + + 5-1337 + @@ -69066,6 +69165,12 @@ exports[`Storyshots Views / Orders / Order details loading 1`] = ` Product + + SKU + + + + ‌ + + @@ -69633,6 +69747,12 @@ exports[`Storyshots Views / Orders / Order details no customer note 1`] = ` Product + + SKU + + + 59-1337 + @@ -69796,6 +69921,12 @@ exports[`Storyshots Views / Orders / Order details no customer note 1`] = ` Product + + SKU + + + 5-1337 + @@ -69981,6 +70117,12 @@ exports[`Storyshots Views / Orders / Order details no customer note 1`] = ` Product + + SKU + + + 5-1337 + @@ -70659,6 +70806,12 @@ exports[`Storyshots Views / Orders / Order details no payment 1`] = ` Product + + SKU + + + 59-1337 + @@ -70822,6 +70980,12 @@ exports[`Storyshots Views / Orders / Order details no payment 1`] = ` Product + + SKU + + + 5-1337 + @@ -71007,6 +71176,12 @@ exports[`Storyshots Views / Orders / Order details no payment 1`] = ` Product + + SKU + + + 5-1337 + @@ -71685,6 +71865,12 @@ exports[`Storyshots Views / Orders / Order details no shipping address 1`] = ` Product + + SKU + + + 59-1337 + @@ -71848,6 +72039,12 @@ exports[`Storyshots Views / Orders / Order details no shipping address 1`] = ` Product + + SKU + + + 5-1337 + @@ -72033,6 +72235,12 @@ exports[`Storyshots Views / Orders / Order details no shipping address 1`] = ` Product + + SKU + + + 5-1337 + @@ -72711,6 +72924,12 @@ exports[`Storyshots Views / Orders / Order details partially fulfilled 1`] = ` Product + + SKU + + + 59-1337 + @@ -72874,6 +73098,12 @@ exports[`Storyshots Views / Orders / Order details partially fulfilled 1`] = ` Product + + SKU + + + 5-1337 + @@ -73059,6 +73294,12 @@ exports[`Storyshots Views / Orders / Order details partially fulfilled 1`] = ` Product + + SKU + + + 5-1337 + @@ -73737,6 +73983,12 @@ exports[`Storyshots Views / Orders / Order details payment confirmed 1`] = ` Product + + SKU + + + 59-1337 + @@ -73900,6 +74157,12 @@ exports[`Storyshots Views / Orders / Order details payment confirmed 1`] = ` Product + + SKU + + + 5-1337 + @@ -74085,6 +74353,12 @@ exports[`Storyshots Views / Orders / Order details payment confirmed 1`] = ` Product + + SKU + + + 5-1337 + @@ -74763,6 +75042,12 @@ exports[`Storyshots Views / Orders / Order details payment error 1`] = ` Product + + SKU + + + 59-1337 + @@ -74926,6 +75216,12 @@ exports[`Storyshots Views / Orders / Order details payment error 1`] = ` Product + + SKU + + + 5-1337 + @@ -75111,6 +75412,12 @@ exports[`Storyshots Views / Orders / Order details payment error 1`] = ` Product + + SKU + + + 5-1337 + @@ -75789,6 +76101,12 @@ exports[`Storyshots Views / Orders / Order details pending payment 1`] = ` Product + + SKU + + + 59-1337 + @@ -75952,6 +76275,12 @@ exports[`Storyshots Views / Orders / Order details pending payment 1`] = ` Product + + SKU + + + 5-1337 + @@ -76137,6 +76471,12 @@ exports[`Storyshots Views / Orders / Order details pending payment 1`] = ` Product + + SKU + + + 5-1337 + @@ -76815,6 +77160,12 @@ exports[`Storyshots Views / Orders / Order details refunded payment 1`] = ` Product + + SKU + + + 59-1337 + @@ -76978,6 +77334,12 @@ exports[`Storyshots Views / Orders / Order details refunded payment 1`] = ` Product + + SKU + + + 5-1337 + @@ -77163,6 +77530,12 @@ exports[`Storyshots Views / Orders / Order details refunded payment 1`] = ` Product + + SKU + + + 5-1337 + @@ -77841,6 +78219,12 @@ exports[`Storyshots Views / Orders / Order details rejected payment 1`] = ` Product + + SKU + + + 59-1337 + @@ -78004,6 +78393,12 @@ exports[`Storyshots Views / Orders / Order details rejected payment 1`] = ` Product + + SKU + + + 5-1337 + @@ -78189,6 +78589,12 @@ exports[`Storyshots Views / Orders / Order details rejected payment 1`] = ` Product + + SKU + + + 5-1337 + @@ -78867,6 +79278,12 @@ exports[`Storyshots Views / Orders / Order details unfulfilled 1`] = ` Product + + SKU + + + 59-1337 + @@ -79030,6 +79452,12 @@ exports[`Storyshots Views / Orders / Order details unfulfilled 1`] = ` Product + + SKU + + + 5-1337 + @@ -79215,6 +79648,12 @@ exports[`Storyshots Views / Orders / Order details unfulfilled 1`] = ` Product + + SKU + + + 5-1337 +