Browse Source

[Backend] Correcitf quantity_max

feature/souke
Guillaume Bourgeois 1 year ago
parent
commit
c292b33392
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      common/logic/Product/Product/Service/ProductSolver.php

+ 1
- 1
common/logic/Product/Product/Service/ProductSolver.php View 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…
Cancel
Save