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:
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user