Inventory sales backorder functionality#156
Merged
Conversation
naydav
reviewed
Oct 26, 2017
| /** @var Item $stockItem */ | ||
| $stockItem = current($stockItemsCollection->getItems()); | ||
|
|
||
| if ($stockItem->getData('backorders') > 0) { |
There was a problem hiding this comment.
Use methods from interface but not from implementation
\Magento\CatalogInventory\Api\Data\StockItemInterface::getBackorders
| * Copyright © Magento, Inc. All rights reserved. | ||
| * See COPYING.txt for license details. | ||
| */ | ||
| namespace Magento\InventorySales\Test\Integration\Stock; |
|
|
||
| use Magento\Catalog\Api\Data\ProductInterface; | ||
| use Magento\Catalog\Api\ProductRepositoryInterface; | ||
| use Magento\Catalog\Model\ProductRepository; |
| * @param string $sku | ||
| * @return SourceItemInterface | ||
| */ | ||
| private function getSourceItemBySKU(string $sku) |
|
|
||
| /** | ||
| * @param SourceItemInterface $sourceItem | ||
| * @param $qty |
| --> | ||
| <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> | ||
| <type name="Magento\InventoryApi\Api\IsProductInStockInterface"> | ||
| <plugin name="backorderInventoryStockStatus" type="Magento\InventorySales\Plugin\Model\BackorderStockStatusPlugin"/> |
added 2 commits
November 1, 2017 16:18
-- slight refactoring
…ckorder # Conflicts: # app/code/Magento/InventorySales/etc/di.xml
magento-devops-reposync-svc
pushed a commit
that referenced
this pull request
Dec 6, 2021
B2B-2018: [AWS S3] [Integration Tests]: Investigate Test Failures in InventoryImportExport module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The solution adds a possibility to use backorders functionality with Multi-Source Inventory