Skip to content

Commit

Permalink
Fix PrestaShop validation error when refund amount has too many decim…
Browse files Browse the repository at this point in the history
…al places

ISSUE: CS-4704
  • Loading branch information
goran-stamenkovski-logeecom committed Nov 17, 2023
1 parent 940c85f commit 1afd9f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/classes/Version/Version177.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ public function updateOrderDetail(
$orderDetail->product_quantity_return += $quantityRefunded;
$orderDetail->product_quantity_reinjected += $quantityRefunded;

$orderDetail->total_refunded_tax_incl = round($orderDetail->total_refunded_tax_incl, 2);
$orderDetail->total_refunded_tax_excl = round($orderDetail->total_refunded_tax_excl, 2);

$orderDetail->update();
}

Expand Down

0 comments on commit 1afd9f1

Please sign in to comment.