Pārlūkot izejas kodu

PriceUtils : correctif

develop
Guillaume pirms 2 gadiem
vecāks
revīzija
5c095a4fae
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      ShopBundle/Services/Price/OrderProductPriceUtils.php

+ 1
- 1
ShopBundle/Services/Price/OrderProductPriceUtils.php Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt