Skip to content

Commit

Permalink
Update PriceCurrency.php
Browse files Browse the repository at this point in the history
Seems it fixes Issue magento#15772 on Magento 2.2.2 - Please validate on other versione
  • Loading branch information
netdesign committed Sep 13, 2021
1 parent 5911389 commit 27cd977
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/code/Magento/Directory/Model/PriceCurrency.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,11 @@ protected function getStore($scope = null)
*/
public function round($price)
{
return round($price, 2);
// fabiobuda@netd.it
// Change from hardcoded 2 to self::DEFAULT_PRECISION
// self::DEFAULT_PRECISION is the standard global configuration for precision
// Sept 13 2021
return round($price, self::DEFAULT_PRECISION);
}

/**
Expand Down

0 comments on commit 27cd977

Please sign in to comment.