Skip to content
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

Merged
merged 6 commits into from
Feb 1, 2018

Conversation

roma-glushko
Copy link
Member

@roma-glushko roma-glushko commented Dec 27, 2017

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)

  1. Move canSubtractQty move on website level #345: Move canSubtractQty move on website level

…terface::canSubtractQty() to be used on the website scope
Roman Glushko added 2 commits December 28, 2017 15:27
…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">
Copy link

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"/>
Copy link
Contributor

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.

@maghamed maghamed merged commit 75e5adf into develop Feb 1, 2018
@maghamed maghamed deleted the 345_assign_canSubtractQty_to_website_scope branch December 11, 2018 18:23
magento-devops-reposync-svc pushed a commit that referenced this pull request Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants