Skip to content

Commit

Permalink
Orders state + status incorrectly updated to Pending (from Processing…
Browse files Browse the repository at this point in the history
…) - improve comparing
  • Loading branch information
LucianTuriacArnia committed Oct 23, 2023
1 parent 713ff9c commit 9218ac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plugin/CommandInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ private function updateOrderStateAndStatus(OrderInterface $order, MethodInterfac
$this->logging->addDebug(__METHOD__ . '|11|' .
var_export(['getTotalPaid' => $order->getTotalPaid(), 'getGrandTotal' => $order->getGrandTotal()], true)
);
if ($order->getTotalPaid() == $order->getGrandTotal()) {
if ($order->getGrandTotal() - $order->getTotalPaid() < 0.001) {
return false;
}

Expand Down

0 comments on commit 9218ac9

Please sign in to comment.