Browse Source

Processus de commande

feature/export_comptable
Fab 4 years ago
parent
commit
77f934cf87
1 changed files with 0 additions and 14 deletions
  1. +0
    -14
      ShopBundle/Services/Price/OrderProductPriceUtils.php

+ 0
- 14
ShopBundle/Services/Price/OrderProductPriceUtils.php View File

@@ -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);

Loading…
Cancel
Save