Small tweak to UI logic (#9734)
This commit is contained in:
parent
11ab0203b1
commit
24a2279368
|
|
@ -317,7 +317,7 @@ export function PurchaseOrderLineItemTable({
|
||||||
|
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
hidden: received || !orderOpen,
|
hidden: received || !orderPlaced,
|
||||||
title: t`Receive line item`,
|
title: t`Receive line item`,
|
||||||
icon: <IconSquareArrowRight />,
|
icon: <IconSquareArrowRight />,
|
||||||
color: 'green',
|
color: 'green',
|
||||||
|
|
@ -349,7 +349,7 @@ export function PurchaseOrderLineItemTable({
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
[orderId, user, orderOpen]
|
[orderId, user, orderOpen, orderPlaced]
|
||||||
);
|
);
|
||||||
|
|
||||||
// Custom table actions
|
// Custom table actions
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue