Browse Source

Processus de commande

feature/export_comptable
Fab 4 years ago
parent
commit
7aaad02600
1 changed files with 19 additions and 29 deletions
  1. +19
    -29
      ShopBundle/Services/Price/OrderProductPriceUtils.php

+ 19
- 29
ShopBundle/Services/Price/OrderProductPriceUtils.php View File

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


Loading…
Cancel
Save