Skip to content

Commit 9988b21

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

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
@@ -231,10 +231,10 @@ protected function initData($creditmemo, $data)
231231
* Calculate product options.
232232
*
233233
* @param Item $orderItem
234-
* @param int|float $parentQty
235-
* @return int|float
234+
* @param float $parentQty
235+
* @return float
236236
*/
237-
private function calculateProductOptions(Item $orderItem, $parentQty)
237+
private function calculateProductOptions(Item $orderItem, float $parentQty): float
238238
{
239239
$qty = $parentQty;
240240
$productOptions = $orderItem->getProductOptions();

0 commit comments

Comments
 (0)