瀏覽代碼

Merge branch 'develop' of https://gitea.laclic.fr/Laclic/LcShopBundle into develop

feature/export_comptable
Fab 4 年之前
父節點
當前提交
bb9069054f
共有 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…
取消
儲存