Explorar el Código

Bons de commande : correctif totaux à 0kg

packProduct
Guillaume hace 3 años
padre
commit
1d72b195d9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      Solver/Config/UnitSolver.php

+ 1
- 1
Solver/Config/UnitSolver.php Ver fichero

@@ -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{

Cargando…
Cancelar
Guardar