Browse Source

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 years ago
parent
commit
5705804481
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Builder/Order/OrderProductBuilder.php

+ 1
- 1
Builder/Order/OrderProductBuilder.php View File

@@ -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…
Cancel
Save