We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72533ad commit 1d341efCopy full SHA for 1d341ef
app/code/Magento/Sales/Model/Order/Creditmemo.php
@@ -389,7 +389,7 @@ public function canRefund()
389
*/
390
public function getInvoice()
391
{
392
- if (!$this->getData('invoice') instanceof \Magento\Sales\Model\Order\Invoice && $this->getInvoiceId()) {
+ if (!$this->getData('invoice') instanceof \Magento\Sales\Api\Data\InvoiceInterface && $this->getInvoiceId()) {
393
$this->setInvoice($this->invoiceFactory->create()->load($this->getInvoiceId()));
394
}
395
return $this->getData('invoice');
0 commit comments