@@ -20,7 +20,7 @@ class PriceUtils | |||
} | |||
elseif($entity->getBehaviorPriceInherited() == 'by-reference-unit') { | |||
if($entity->getQuantityInherited() > 0) { | |||
return $entity->getPriceByRefUnitInherited() * $entity->getQuantityInherited() ; | |||
return $entity->getPriceByRefUnitInherited() * ($entity->getQuantityInherited() / $entity->getUnitInherited()->getCoefficient()) ; | |||
} | |||
} | |||
} |