Browse Source

Correctifs divers

feature/export_comptable
Guillaume 4 years ago
parent
commit
5eb42d7654
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ShopBundle/Services/PriceUtils.php

+ 1
- 1
ShopBundle/Services/PriceUtils.php View File

} }
elseif($entity->getBehaviorPriceInherited() == 'by-reference-unit') { elseif($entity->getBehaviorPriceInherited() == 'by-reference-unit') {
if($entity->getQuantityInherited() > 0) { if($entity->getQuantityInherited() > 0) {
return $entity->getPriceByRefUnitInherited() * $entity->getQuantityInherited() ;
return $entity->getPriceByRefUnitInherited() * ($entity->getQuantityInherited() / $entity->getUnitInherited()->getCoefficient()) ;
} }
} }
} }

Loading…
Cancel
Save