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

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

Loading…
Cancel
Save