浏览代码

Merge branch 'develop'

master
Guillaume 3 年前
父节点
当前提交
1ca16c2cfb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      Solver/Config/UnitSolver.php

+ 1
- 1
Solver/Config/UnitSolver.php 查看文件

@@ -9,7 +9,7 @@ use Lc\CaracoleBundle\Model\Config\UnitInterface;
class UnitSolver
{

public function getWeight(UnitInterface $unit, int $quantityProduct, ?int $quantity){
public function getWeight(UnitInterface $unit, float $quantityProduct, ?int $quantity){
if($quantity) {
return ($quantityProduct / $unit->getCoefficient()) * $quantity;
}else{

正在加载...
取消
保存