Skip to content

Commit 89b5aac

Browse files
committed
AC-9221::SubTotal Rounding Issue For Decimal Quantity Enabled Product
1 parent c22a9db commit 89b5aac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/code/Magento/Directory/Model/Currency.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,9 @@ public function formatPrecision(
341341
$includeContainer = true,
342342
$addBrackets = false
343343
) {
344+
if(is_numeric($price)) {
345+
$price = round($price, $precision);
346+
}
344347
if (!isset($options['precision'])) {
345348
$options['precision'] = $precision;
346349
}

0 commit comments

Comments
 (0)