Skip to content

Commit bdd0697

Browse files
authored
Fixed "Credit Memo not created when refund issued by merchant" (#2729)
1 parent fc15c93 commit bdd0697

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/core/Mage/Sales/Model/Order/Payment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ public function registerRefundNotification($amount)
805805
$amount = $amountRefundLeft;
806806
}
807807

808-
if ($amount != $baseGrandTotal) {
808+
if (Mage::helper('core')->getExactDivision($amount, $baseGrandTotal) != 0) {
809809
$transaction = new Varien_Object(['txn_id' => $this->getTransactionId()]);
810810
Mage::dispatchEvent('sales_html_txn_id', ['transaction' => $transaction, 'payment' => $this]);
811811
$transactionId = $transaction->getHtmlTxnId() ? $transaction->getHtmlTxnId() : $transaction->getTxnId();

0 commit comments

Comments
 (0)