瀏覽代碼

Bons de commande : correctif totaux à 0kg

packProduct
Guillaume 3 年之前
父節點
當前提交
1d72b195d9
共有 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{

Loading…
取消
儲存