-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Exception on reorder from admin #21926
Comments
Hi @likemusic. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @likemusic do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
It happens because in \Magento\CatalogInventory\Model\StockStateProvider::checkQuoteItemQty()#L122 decimal qty from orderconverted to int value. For deciamals less then 1 it becomes zero. Seems that here for decimal qty minimum value should be set to 1 if it is 0 after casting to int. |
Hi @dmytro-ch. Thank you for working on this issue.
|
✅ Confirmed by @dmytro-ch Issue Available: @dmytro-ch, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
Hi @likemusic. Thank you for your report. The fix will be available with the upcoming 2.3.2 release. |
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
Exception #0 (Exception): Warning: Division by zero in /var/www/bateel/vendor/magento/module-tax/Model/Calculation/AbstractAggregateCalculator.php on line 151
The text was updated successfully, but these errors were encountered: