Skip to content

Commit 6310791

Browse files
committed
BUG#7632: Creditmemo for an order that contains only one configurable product is not generated correctly
1 parent f6543e2 commit 6310791

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/code/Magento/Sales/Model/Order/Creditmemo.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,11 @@ public function isLast()
563563
{
564564
$items = $this->getAllItems();
565565
foreach ($items as $item) {
566+
$orderItem = $item->getOrderItem();
567+
if ($orderItem->isDummy()) {
568+
continue;
569+
}
570+
566571
if (!$item->isLast()) {
567572
return false;
568573
}

0 commit comments

Comments
 (0)