Skip to content

Commit

Permalink
forgot division
Browse files Browse the repository at this point in the history
  • Loading branch information
dlhck committed Sep 21, 2021
1 parent 35e4063 commit 79201df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Extension/ConvertOrderItemsExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ protected function transformMoneyWithCurrency(int $amount, string $currencyCode)
$value = (int)round((round($amount / $this->decimalFactor, $this->decimalPrecision) * 100), 0);

return [
'value' => sprintf("%01.2f", $value),
'value' => sprintf("%01.2f", ($value / 100)),
'currency' => $currencyCode
];
}
Expand Down

0 comments on commit 79201df

Please sign in to comment.