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

Need to add Condition for Qty Check by Type. Decimal or not #903

Closed
maghamed opened this issue Apr 13, 2018 · 1 comment
Closed

Need to add Condition for Qty Check by Type. Decimal or not #903

maghamed opened this issue Apr 13, 2018 · 1 comment

Comments

@maghamed
Copy link
Contributor

We have next code

        /**
         * Check quantity type
         */
        $result->setItemIsQtyDecimal($stockItem->getIsQtyDecimal());
        if (!$stockItem->getIsQtyDecimal()) {
            $result->setHasQtyOptionUpdate(true);
            $qty = intval($qty);
            /**
             * Adding stock data to quote item
             */
            $result->setItemQty($qty);
            $qty = $this->getNumber($qty);
            $origQty = intval($origQty);
            $result->setOrigQty($origQty);
        }

In legacy implementation
\Magento\CatalogInventory\Model\StockStateProvider::checkQuoteItemQty

This case is not covered in MSI

@maghamed maghamed added this to the MSI Part I milestone Apr 13, 2018
@maghamed
Copy link
Contributor Author

Duplicating #774

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

No branches or pull requests

1 participant