Sfoglia il codice sorgente

Finalisation purchaseOrder et Correctif mineur

packProduct
Fabien Normand 3 anni fa
parent
commit
fb36209451
1 ha cambiato i file con 17 aggiunte e 0 eliminazioni
  1. +17
    -0
      Solver/Config/UnitSolver.php

+ 17
- 0
Solver/Config/UnitSolver.php Vedi 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…
Annulla
Salva