Skip to content

Commit 5e99d0c

Browse files
committed
ACP2E-1066: Credit memo not genrated if order configrable product with decimal quantity
- Fixed the issue.
1 parent 2854866 commit 5e99d0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,10 @@ protected function initData($creditmemo, $data)
230230
* Calculate product options.
231231
*
232232
* @param Item $orderItem
233-
* @param int $parentQty
234-
* @return int
233+
* @param int|float $parentQty
234+
* @return int|float
235235
*/
236-
private function calculateProductOptions(Item $orderItem, int $parentQty): int
236+
private function calculateProductOptions(Item $orderItem, int|float $parentQty): int|float
237237
{
238238
$qty = $parentQty;
239239
$productOptions = $orderItem->getProductOptions();

0 commit comments

Comments
 (0)