Skip to content

Commit

Permalink
Merge pull request #275 from JonLaliberte/fix-bundle-creditmemo-calc
Browse files Browse the repository at this point in the history
creditmemo bundle inventory calculation error
  • Loading branch information
colinmollenhour authored Nov 8, 2017
2 parents a73d216 + 4347c58 commit 53b8fe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/core/Mage/CatalogInventory/Model/Observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ public function refundOrderInventory($observer)
$parentOrderId = $item->getOrderItem()->getParentItemId();
/* @var $parentItem Mage_Sales_Model_Order_Creditmemo_Item */
$parentItem = $parentOrderId ? $creditmemo->getItemByOrderId($parentOrderId) : false;
$qty = $parentItem ? ($parentItem->getQty() * $item->getQty()) : $item->getQty();
$qty = $item->getQty();
if (isset($items[$item->getProductId()])) {
$items[$item->getProductId()]['qty'] += $qty;
} else {
Expand Down

0 comments on commit 53b8fe9

Please sign in to comment.