Explorar el Código

PriceUtils : correctif

develop
Guillaume hace 2 años
padre
commit
5c095a4fae
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      ShopBundle/Services/Price/OrderProductPriceUtils.php

+ 1
- 1
ShopBundle/Services/Price/OrderProductPriceUtils.php Ver fichero

@@ -89,7 +89,7 @@ class OrderProductPriceUtils

public function getMarginPercent(OrderProductInterface $orderProduct)
{
if ($this->getBuyingPrice($orderProduct)) {
if ($this->getBuyingPrice($orderProduct) && $this->getPriceWithReduction($orderProduct)) {
return $this->round(($this->getMargin($orderProduct) / $this->getPriceWithReduction($orderProduct)) * 100);
} else {
return 0;

Cargando…
Cancelar
Guardar