Selaa lähdekoodia

Processus de commande

feature/export_comptable
Fab 4 vuotta sitten
vanhempi
commit
7aaad02600
1 muutettua tiedostoa jossa 19 lisäystä ja 29 poistoa
  1. +19
    -29
      ShopBundle/Services/Price/OrderProductPriceUtils.php

+ 19
- 29
ShopBundle/Services/Price/OrderProductPriceUtils.php Näytä tiedosto

@@ -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…
Peruuta
Tallenna