Skip to content

Stock Removal. Throw an exception and allow to delete just unassigned stocks #157

@maghamed

Description

@maghamed

It should not be possible to delete stock which is assigned to one or more Sales Channels, as Sales Channels would be left without inventory after that action.

Currently in the scope of PR #150 SalesChannel interface has been introduced
https://github.com/magento-engcom/msi/blob/3ca6de9977091eca076a5bad9c7754cfc6880a17/app/code/Magento/InventorySalesApi/Api/Data/SalesChannelInterface.php

Extension attribute with SalesChannles has been added to StockInterface.
As we have an assignment Stock -> SalesChannel

image

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions