Skip to content

Commit

Permalink
- updated field to check for available inventory, it used the balance…
Browse files Browse the repository at this point in the history
…d inventory instead of the inventory qty which is the qty that is left from the balanced inventory
  • Loading branch information
24198 committed Jul 30, 2020
1 parent 224ba34 commit 1f44fe2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private function getAvailableBalancedInventory(Product $product, SalesChannel $s
$salesChannelGroup = $salesChannel->getGroup();
$result = $this->getBalancedInventoryLevel($product, $salesChannelGroup);

return ($result) ? $result->getBalancedInventoryQty() : 0;
return ($result) ? $result->getInventoryQty() : 0;
}

/**
Expand Down

0 comments on commit 1f44fe2

Please sign in to comment.