Przeglądaj źródła

PriceUtils : correctif

develop
Guillaume 2 lat temu
rodzic
commit
5c095a4fae
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      ShopBundle/Services/Price/OrderProductPriceUtils.php

+ 1
- 1
ShopBundle/Services/Price/OrderProductPriceUtils.php Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz