瀏覽代碼

Correctifs divers

feature/export_comptable
Guillaume 4 年之前
父節點
當前提交
5eb42d7654
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      ShopBundle/Services/PriceUtils.php

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

@@ -20,7 +20,7 @@ class PriceUtils
}
elseif($entity->getBehaviorPriceInherited() == 'by-reference-unit') {
if($entity->getQuantityInherited() > 0) {
return $entity->getPriceByRefUnitInherited() * $entity->getQuantityInherited() ;
return $entity->getPriceByRefUnitInherited() * ($entity->getQuantityInherited() / $entity->getUnitInherited()->getCoefficient()) ;
}
}
}

Loading…
取消
儲存