Skip to content

Commit 6f10e2a

Browse files
committed
Fix type error for item qty when refunding an invoice
1 parent c135fc3 commit 6f10e2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function createByInvoice(\Magento\Sales\Model\Order\Invoice $invoice, arr
138138

139139
$qty = min(
140140
$this->getQtyToRefund($orderItem, $qtyList, $invoiceRefundLimitsQtyList),
141-
$invoiceItem->getQty()
141+
(float)$invoiceItem->getQty()
142142
);
143143
$totalQty += $qty;
144144
$item = $this->convertor->itemToCreditmemoItem($orderItem);

0 commit comments

Comments
 (0)