|
|
@@ -68,7 +68,10 @@ class OrderProductPriceUtils |
|
|
|
return $orderProduct->getQuantityOrder() * $this->getPrice($orderProduct); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function getTotalBuyingPrice(OrderProductInterface $orderProduct) |
|
|
|
{ |
|
|
|
return $orderProduct->getQuantityOrder() * $this->getBuyingPrice($orderProduct); |
|
|
|
} |
|
|
|
|
|
|
|
public function getMargin(OrderProductInterface $orderProduct) |
|
|
|
{ |
|
|
@@ -120,6 +123,14 @@ class OrderProductPriceUtils |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
public function getTotalBuyingPriceWithTax(OrderProductInterface $orderProduct) |
|
|
|
{ |
|
|
|
return $this->applyTax( |
|
|
|
$this->getTotalBuyingPrice($orderProduct), |
|
|
|
$orderProduct->getTaxRateInherited()->getValue() |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
//inclus toujours les réductions catalogues |
|
|
|
public function getTotalTaxes(OrderProductInterface $orderProduct){ |
|
|
|
return $this->getTotalWithTaxAndReduction($orderProduct) - $this->getTotalWithReduction($orderProduct); |