Browse Source

Finalisation purchaseOrder et Correctif mineur

packProduct
Fabien Normand 3 years ago
parent
commit
fb36209451
1 changed files with 17 additions and 0 deletions
  1. +17
    -0
      Solver/Config/UnitSolver.php

+ 17
- 0
Solver/Config/UnitSolver.php View File

@@ -0,0 +1,17 @@
<?php

namespace Lc\CaracoleBundle\Solver\Config;



use Lc\CaracoleBundle\Model\Config\UnitInterface;

class UnitSolver
{

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


}

Loading…
Cancel
Save