瀏覽代碼

Erreur 500 : Argument 2 passed to Lc\CaracoleBundle\Factory\Order\OrderProductReductionCatalogFactory::create() must be of the type float, null given #297

develop
Guillaume Bourgeois 2 年之前
父節點
當前提交
5705804481
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      Builder/Order/OrderProductBuilder.php

+ 1
- 1
Builder/Order/OrderProductBuilder.php 查看文件

@@ -65,7 +65,7 @@ class OrderProductBuilder
if ($reductionCatalog && $reductionCatalog->getStatus()) {
$orderProductReductionCatalog = $this->orderProductReductionCatalogFactory->create(
$reductionCatalog->getTitle(),
$reductionCatalog->getValue(),
is_null($reductionCatalog->getValue()) ? 0 : $reductionCatalog->getValue(),
$reductionCatalog->getUnit(),
$reductionCatalog->getBehaviorTaxRate()
);

Loading…
取消
儲存