Sfoglia il codice sorgente

[Backend] Correcitf quantity_max

feature/souke
Guillaume Bourgeois 1 anno fa
parent
commit
c292b33392
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      common/logic/Product/Product/Service/ProductSolver.php

+ 1
- 1
common/logic/Product/Product/Service/ProductSolver.php Vedi File

@@ -206,7 +206,7 @@ class ProductSolver extends AbstractService implements SolverInterface
$quantityMax = $product->quantity_max;
if($this->isProductQuantityMaxDefinedByDay($product, $day)) {
$fieldQuantityMax = $this->getProductFieldNameQuantityMax($day);
$quantityMax = $product->$fieldQuantityMax;
$quantityMax = (float) $product->$fieldQuantityMax;
}
return $quantityMax;

Loading…
Annulla
Salva