Skip to content

Commit 8ab5415

Browse files
committed
fixed related issue
1 parent 735579d commit 8ab5415

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ private function canCreditmemoForZeroTotal($totalRefunded)
716716
$hasDueAmount = $this->canInvoice() && ($checkAmtTotalPaid);
717717
//case when paid amount is refunded and order has creditmemo created
718718
$creditmemos = ($this->getCreditmemosCollection() === false) ?
719-
true : (count($this->getCreditmemosCollection()) > 0);
719+
true : ($this->_memoCollectionFactory->create()->setOrderFilter($this)->getTotalCount() > 0);
720720
$paidAmtIsRefunded = $this->getTotalRefunded() == $totalPaid && $creditmemos;
721721
if (($hasDueAmount || $paidAmtIsRefunded) ||
722722
(!$checkAmtTotalPaid &&

0 commit comments

Comments
 (0)