Closed
Description
After failed order, Magento increase product quantity, make reindex for this product and flush cache while in the product Manage Stock in disabled
Preconditions
- Magento 2.2.6
- PayPal Express payment method
Steps to reproduce
- In the admin panel set for a product Manage Stock: No and Quantity: 100
- Place an order with this product via PayPal, but with a card that does not have enough money to pay for the order
Expected result
- Product Quantity is 100
Actual result
- Product Quantity is 101
Tech details
It happens becouse Catalog Inventory has event for sales_model_service_quote_submit_failure
how run $this->stockManagement->revertProductsSale($items, $quote->getStore()->getWebsiteId());
where $items
its all items from Quote
revertProductsSale
make correctItemsQty
(increase) for each items (include itemd with Manage Stock in disabled)
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.2 release lineThe issue has been fixed in 2.3 release lineGate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 release