Commit c72a9ae9 authored by Kevin Kaminski's avatar Kevin Kaminski

Merge branch 'display-full-order-numbers' into 'dev'

Change order numbers to show full object ids

See merge request !20
parents 42f09a82 4a3ab94a
...@@ -21,7 +21,7 @@ const OrderDetails = (props: any) => { ...@@ -21,7 +21,7 @@ const OrderDetails = (props: any) => {
const status = props.status const status = props.status
return ( return (
<> <>
<Td><Link to={"/orders/" + orderNumber}>{orderNumber.slice(orderNumber.length - 7).toUpperCase()}</Link></Td> <Td><Link to={"/orders/" + orderNumber}>{orderNumber}</Link></Td>
<Td>{date}</Td> <Td>{date}</Td>
<Td>{status}</Td> <Td>{status}</Td>
</> </>
......
...@@ -36,7 +36,7 @@ const OrderShowPage = (props: any) => { ...@@ -36,7 +36,7 @@ const OrderShowPage = (props: any) => {
<div className="show-div"> <div className="show-div">
<Flex justify="space-around"> <Flex justify="space-around">
<Box><strong>Order Date:</strong> {new Date(order.orderCreatedAt).toLocaleDateString()}</Box> <Box><strong>Order Date:</strong> {new Date(order.orderCreatedAt).toLocaleDateString()}</Box>
<Box><strong>Order Number:</strong> {order.id.slice(order.id.length - 7).toUpperCase()}</Box> <Box><strong>Order Number:</strong> {order.id}</Box>
<Box><strong>Order Status:</strong> {order.orderStatus}</Box> <Box><strong>Order Status:</strong> {order.orderStatus}</Box>
</Flex> </Flex>
<br/> <br/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment