|
|
@@ -44,20 +44,6 @@ class OrderProductPriceUtils |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public function getPriceByRefUnit(OrderProductInterface $orderProduct) |
|
|
|
{ |
|
|
|
return ($this->getPrice($orderProduct) * $orderProduct->getUnit()->getCoefficient()) / $orderProduct->getQuantityProduct(); |
|
|
|
} |
|
|
|
|
|
|
|
public function getPriceByRefUnitWithTax(OrderProductInterface $orderProduct) |
|
|
|
{ |
|
|
|
return $this->applyTax( |
|
|
|
$this->getPriceByRefUnit($orderProduct), |
|
|
|
$orderProduct->getTaxRate()->getValue() |
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public function getTotal(OrderProductInterface $orderProduct) |
|
|
|
{ |
|
|
|
return $orderProduct->getQuantityOrder() * $this->getPrice($orderProduct); |