Fix Coupon RemoveXPercent missing round
modified: core/lib/Thelia/Coupon/Type/RemoveXPercent.php
This commit is contained in:
@@ -106,7 +106,7 @@ class RemoveXPercent extends CouponAbstract
|
||||
|
||||
$basePrice = $this->facade->getCartTotalPrice();
|
||||
|
||||
return $basePrice * (( $this->percentage ) / 100);
|
||||
return round($basePrice * $this->percentage/100, 2);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user