Procházet zdrojové kódy

PriceUtils : correctif

develop
Guillaume před 2 roky
rodič
revize
5c095a4fae
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      ShopBundle/Services/Price/OrderProductPriceUtils.php

+ 1
- 1
ShopBundle/Services/Price/OrderProductPriceUtils.php Zobrazit soubor

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

Načítá se…
Zrušit
Uložit