Browse Source

Bons de commande : correctif totaux à 0kg

packProduct
Guillaume 3 years ago
parent
commit
1d72b195d9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Solver/Config/UnitSolver.php

+ 1
- 1
Solver/Config/UnitSolver.php View File

class UnitSolver class UnitSolver
{ {


public function getWeight(UnitInterface $unit, int $quantityProduct, ?int $quantity){
public function getWeight(UnitInterface $unit, float $quantityProduct, ?int $quantity){
if($quantity) { if($quantity) {
return ($quantityProduct / $unit->getCoefficient()) * $quantity; return ($quantityProduct / $unit->getCoefficient()) * $quantity;
}else{ }else{

Loading…
Cancel
Save