Pārlūkot izejas kodu

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

develop
Guillaume Bourgeois pirms 2 gadiem
vecāks
revīzija
5705804481
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      Builder/Order/OrderProductBuilder.php

+ 1
- 1
Builder/Order/OrderProductBuilder.php Parādīt failu

@@ -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()
);

Notiek ielāde…
Atcelt
Saglabāt