We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3d33aa3 + f625520 commit c15eaf0Copy full SHA for c15eaf0
Model/Refund/Push.php
@@ -344,7 +344,17 @@ public function calculateRemainder()
344
- $baseTotalToBeRefunded
345
- $this->order->getBaseTotalRefunded();
346
347
+ $this->logging->addDebug(__METHOD__.'|5|'.var_export([
348
+ $this->totalAmountToRefund(), $this->order->getBaseGrandTotal(), $remainderToRefund
349
+ ], true));
350
+
351
if ($this->totalAmountToRefund() == $this->order->getBaseGrandTotal()) {
352
+ $this->logging->addDebug(__METHOD__.'|10|');
353
+ $remainderToRefund = 0;
354
+ }
355
356
+ if ($remainderToRefund < 0.01) {
357
+ $this->logging->addDebug(__METHOD__.'|15|');
358
$remainderToRefund = 0;
359
}
360
0 commit comments