2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 11:36:44 +00:00

Hide "allocations" tab for items which are not in stock (#8334)

This commit is contained in:
Oliver 2024-10-23 07:16:14 +11:00 committed by GitHub
parent cb0248d159
commit 2adb41f448
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -420,7 +420,9 @@ export default function StockDetail() {
name: 'allocations',
label: t`Allocations`,
icon: <IconBookmark />,
hidden: !showSalesAlloctions && !showBuildAllocations,
hidden:
!stockitem.in_stock ||
(!showSalesAlloctions && !showBuildAllocations),
content: (
<Accordion
multiple={true}