@@ -9,7 +9,7 @@ use Lc\CaracoleBundle\Model\Config\UnitInterface; | |||
class UnitSolver | |||
{ | |||
public function getWeight(UnitInterface $unit, int $quantityProduct, ?int $quantity){ | |||
public function getWeight(UnitInterface $unit, float $quantityProduct, ?int $quantity){ | |||
if($quantity) { | |||
return ($quantityProduct / $unit->getCoefficient()) * $quantity; | |||
}else{ |