mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 19:46:46 +00:00
Hide "allocations" tab for items which are not in stock (#8334)
This commit is contained in:
parent
cb0248d159
commit
2adb41f448
@ -420,7 +420,9 @@ export default function StockDetail() {
|
|||||||
name: 'allocations',
|
name: 'allocations',
|
||||||
label: t`Allocations`,
|
label: t`Allocations`,
|
||||||
icon: <IconBookmark />,
|
icon: <IconBookmark />,
|
||||||
hidden: !showSalesAlloctions && !showBuildAllocations,
|
hidden:
|
||||||
|
!stockitem.in_stock ||
|
||||||
|
(!showSalesAlloctions && !showBuildAllocations),
|
||||||
content: (
|
content: (
|
||||||
<Accordion
|
<Accordion
|
||||||
multiple={true}
|
multiple={true}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user