2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-01-28 09:03:41 +00:00

[UI] Fix "assign to customer" (#11151)

- Hide if base part is not salable
- Closes https://github.com/inventree/InvenTree/issues/11134
This commit is contained in:
Oliver
2026-01-17 21:18:28 +11:00
committed by GitHub
parent 4ad241ce47
commit 31f32c3753

View File

@@ -753,7 +753,7 @@ export default function StockDetail() {
const stockAdjustActions = useStockAdjustActions({
formProps: stockOperationProps,
delete: false,
assign: !!stockitem.in_stock,
assign: !!stockitem.in_stock && stockitem.part_detail?.salable,
return: !!stockitem.consumed_by || !!stockitem.customer,
merge: false
});