@@ -232,7 +232,7 @@ class OrderShopSolver | |||
} | |||
return $arrayComplementaryOrderShops; | |||
} | |||
public function countValidComplementaryOrderShops(OrderShopInterface $orderShop): int | |||
{ | |||
return count($this->getValidComplementaryOrderShops($orderShop)); |
@@ -20,6 +20,17 @@ trait PriceSolverTrait | |||
return $price; | |||
} | |||
public function excludeTax($price, $taxRateValue, $round = true) | |||
{ | |||
$price = $this->applyPercentNegative($price, $taxRateValue); | |||
if($round) { | |||
return $this->round($price); | |||
} | |||
return $price; | |||
} | |||
public function applyReductionPercent($price, $percentage) | |||
{ | |||
return $this->applyPercent($price, -$percentage); |