Skip to content

Commit 638c19d

Browse files
committed
AC-15401: order entity type change durring invoice
1 parent 678ef5f commit 638c19d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

app/code/Magento/Sales/Model/Service/InvoiceService.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ private function canInvoiceItem(OrderItemInterface $item, array $qtys): bool
279279
} else {
280280
return $item->getQtyToInvoice() > 0;
281281
}
282+
return false;
282283
}
283284

284285
/**

app/code/Magento/Sales/Test/Unit/Model/Service/InvoiceServiceTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
use PHPUnit\Framework\MockObject\MockObject;
2222
use PHPUnit\Framework\TestCase;
2323

24+
/**
25+
*
26+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
27+
*/
2428
class InvoiceServiceTest extends TestCase
2529
{
2630
/**

0 commit comments

Comments
 (0)