Commit a71aba5d by halweg

fix format price bug

parent 88705ef2
...@@ -171,8 +171,10 @@ class Format implements \Magento\Framework\Locale\FormatInterface ...@@ -171,8 +171,10 @@ class Format implements \Magento\Framework\Locale\FormatInterface
'pattern' => $currency->getOutputFormat(), 'pattern' => $currency->getOutputFormat(),
'precision' => $totalPrecision, 'precision' => $totalPrecision,
'requiredPrecision' => $requiredPrecision, 'requiredPrecision' => $requiredPrecision,
'decimalSymbol' => $decimalSymbol, /* 'decimalSymbol' => $decimalSymbol, 框架旧代码,这里有bug
'groupSymbol' => $groupSymbol, 'groupSymbol' => $groupSymbol,*/
'decimalSymbol' => '.',
'groupSymbol' => ',',
'groupLength' => $group, 'groupLength' => $group,
'integerRequired' => $totalPrecision == 0, 'integerRequired' => $totalPrecision == 0,
]; ];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment