Merge pull request #6502 from der-On/patch-1
Uses rounding precision of 4 to store cart item prices
This commit is contained in:
commit
41726ce34c
|
|
@ -513,7 +513,7 @@ abstract class AbstractType
|
||||||
*/
|
*/
|
||||||
public function getFinalPrice($qty = null)
|
public function getFinalPrice($qty = null)
|
||||||
{
|
{
|
||||||
return round($this->getMinimalPrice($qty), 2);
|
return round($this->getMinimalPrice($qty), 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -887,7 +887,7 @@ abstract class AbstractType
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
$price = round($item->product->getTypeInstance()->getFinalPrice($item->quantity), 2);
|
$price = round($item->product->getTypeInstance()->getFinalPrice($item->quantity), 4);
|
||||||
|
|
||||||
if ($price == $item->base_price) {
|
if ($price == $item->base_price) {
|
||||||
return $result;
|
return $result;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue