Skip to content

Commit 72cb638

Browse files
authored
MDVA-30889 - update (#11)
1 parent c0f8acf commit 72cb638

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed
Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
diff --git a/vendor/magento/module-inventory-shipping/Model/GetSourceSelectionResultFromInvoice.php b/vendor/magento/module-inventory-shipping/Model/GetSourceSelectionResultFromInvoice.php
2-
index 21b3b47a053..ac91197d9be 100644
3-
--- a/vendor/magento/module-inventory-shipping/Model/GetSourceSelectionResultFromInvoice.php
4-
+++ b/vendor/magento/module-inventory-shipping/Model/GetSourceSelectionResultFromInvoice.php
5-
@@ -110,8 +110,7 @@ class GetSourceSelectionResultFromInvoice
6-
$selectionRequestItems = [];
7-
foreach ($invoiceItems as $invoiceItem) {
8-
$orderItem = $invoiceItem->getOrderItem();
9-
-
10-
- if ($orderItem->isDummy() || !$orderItem->getIsVirtual()) {
11-
+ if (!$orderItem->getQtyToInvoice() > 0 && $orderItem->getLockedDoInvoice() || !$orderItem->getIsVirtual()) {
12-
continue;
13-
}
14-
1+
diff --git a/vendor/magento/module-inventory-source-selection/Model/Request/InventoryRequest.php b/vendor/magento/module-inventory-source-selection/Model/Request/InventoryRequest.php
2+
index 88e4246ea55..d70a5a610c1 100644
3+
--- a/vendor/magento/module-inventory-source-selection/Model/Request/InventoryRequest.php
4+
+++ b/vendor/magento/module-inventory-source-selection/Model/Request/InventoryRequest.php
5+
@@ -74,6 +74,7 @@ public function __construct(
6+
$this->stockId = $stockId;
7+
8+
//TODO: Temporary fix for resolving issue with webApi (https://github.com/magento-engcom/msi/issues/1524)
9+
+ $this->items = [];
10+
foreach ($items as $item) {
11+
if (false === $item instanceof ItemRequestInterface) {
12+
$this->items[] = $this->itemRequestFactory->create([

0 commit comments

Comments
 (0)