|
|
@@ -36,10 +36,14 @@ class OrderProductPriceUtils |
|
|
|
|
|
|
|
public function getPriceWithTaxAndReduction(OrderProductInterface $orderProduct) |
|
|
|
{ |
|
|
|
return $this->applyReductionCatalog( |
|
|
|
$orderProduct, |
|
|
|
$this->getPrice($orderProduct), |
|
|
|
$this->getPriceWithTax($orderProduct) |
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function getPriceByRefUnit(OrderProductInterface $orderProduct) |
|
|
|
{ |
|
|
|
return ($this->getPrice($orderProduct) * $orderProduct->getUnit()->getCoefficient()) / $orderProduct->getQuantityProduct(); |
|
|
@@ -54,29 +58,21 @@ class OrderProductPriceUtils |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public function getPriceByRefUnitWithTaxAndReduction(OrderProductInterface $orderProduct) |
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public function getTotal(OrderProductInterface $orderProduct) |
|
|
|
{ |
|
|
|
return $orderProduct->getQuantityOrder() * $this->getPrice($orderProduct); |
|
|
|
} |
|
|
|
|
|
|
|
public function getTotalWithReductionCatalog(OrderProductInterface $orderProduct) |
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public function getTotalWithReductionCart(OrderProductInterface $orderProduct) |
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public function getTotalWithReductions(OrderProductInterface $orderProduct) |
|
|
|
public function getTotalWithReduction(OrderProductInterface $orderProduct) |
|
|
|
{ |
|
|
|
|
|
|
|
return $this->applyReductionCatalog( |
|
|
|
$orderProduct, |
|
|
|
$this->getTotal($orderProduct), |
|
|
|
$this->getTotalWithTax($orderProduct), |
|
|
|
null, |
|
|
|
false |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
public function getTotalWithTax(OrderProductInterface $orderProduct) |
|
|
@@ -87,19 +83,13 @@ class OrderProductPriceUtils |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
public function getTotalWithTaxAndReductionCatalog(OrderProductInterface $orderProduct) |
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public function getTotalWithTaxAndReductionCart(OrderProductInterface $orderProduct) |
|
|
|
public function getTotalWithTaxAndReduction(OrderProductInterface $orderProduct) |
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public function getTotalWithTaxAndReductions(OrderProductInterface $orderProduct) |
|
|
|
{ |
|
|
|
|
|
|
|
return $this->applyReductionCatalog( |
|
|
|
$orderProduct, |
|
|
|
$this->getTotal($orderProduct), |
|
|
|
$this->getTotalWithTax($orderProduct) |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|