Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bug-OpenMage#275] Creditmemo qty calculation error in Mage_CatalogIn…
…ventory_Model_Observer This bug was present begining in 1.7.0.2 and is still present in 1.9.3.3. This patch has been running in production for about 4 years without any issues. Code was mis-calcuating the qty of simple items to put back in stock for bundle (and configurable) products. For example if you had a Bundle X that contained 10 Widgets and the customer ordered 10 of the Bundle X (thus they ordered 100 Widgets), the code previously would multiply twice when issuing a credit memo: When calling $item->getQty() on the Widget product Magento would return 100, since that's how many exist in the order. It would then multiply that by the number of Bundle X in the order (10), and would return 1000 items to the inventory for the Widget, instead of just 100.
- Loading branch information