浏览代码

PriceUtils : correctif

develop
Guillaume 3 年前
父节点
当前提交
5c095a4fae
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      ShopBundle/Services/Price/OrderProductPriceUtils.php

+ 1
- 1
ShopBundle/Services/Price/OrderProductPriceUtils.php 查看文件

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

正在加载...
取消
保存