-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#345 Refactored the StockConfigurationInterface::canSubtractQty() to be used on the website scope #357
Conversation
…terface::canSubtractQty() to be used on the website scope
…rationInterface::canSubtractQty() to be used on the website scope" This reverts commit 980d56c.
@@ -13,7 +13,7 @@ | |||
<resource>Magento_CatalogInventory::cataloginventory</resource> | |||
<group id="options" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1"> | |||
<label>Stock Options</label> | |||
<field id="can_subtract" translate="label" type="select" sortOrder="2" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1"> | |||
<field id="can_subtract" translate="label" type="select" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can not change legacy(core) code
We need to override this option in new config in new InventorySales
module
@@ -9,6 +9,7 @@ | |||
<module name="Magento_InventorySales" setup_version="1.0.0"> | |||
<sequence> | |||
<module name="Magento_InventoryCatalog"/> | |||
<module name="Magento_CatalogInventory"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is wrong sequence, we no need to add CatalogInventory to any MSI module,
taking into account that MSI would be installed on top of Magento, CatalogInventory would be already installed.
Inventory fixes for Application server
Description
Moved the "Decrease Stock When Order is Placed" store configuration to the website scope.
Other modules will read this option on website scope as well.
Fixed Issues (if relevant)