Skip to content

Commit

Permalink
Fix of invalid price for integer currencies when amount less then gro…
Browse files Browse the repository at this point in the history
…up size
  • Loading branch information
Volodymyr Kublytskyi committed Jul 6, 2018
1 parent 113bf62 commit e2c4aca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/internal/Magento/Framework/Locale/Format.php
Expand Up @@ -131,7 +131,6 @@ public function getPriceFormat($localeCode = null, $currencyCode = null)
} else {
$group = strrpos($format, '.');
}
$integerRequired = strpos($format, '.') - strpos($format, '0');

$result = [
//TODO: change interface
Expand All @@ -141,7 +140,7 @@ public function getPriceFormat($localeCode = null, $currencyCode = null)
'decimalSymbol' => $decimalSymbol,
'groupSymbol' => $groupSymbol,
'groupLength' => $group,
'integerRequired' => $integerRequired,
'integerRequired' => $totalPrecision == 0,
];

return $result;
Expand Down

0 comments on commit e2c4aca

Please sign in to comment.