From aee86bbf73e9252f6757ef971002ce9607d0e616 Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Fri, 3 Nov 2023 12:38:02 +0100 Subject: [PATCH] Update product.php --- functions/product.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/product.php b/functions/product.php index 4e701ce8..6124237a 100644 --- a/functions/product.php +++ b/functions/product.php @@ -103,7 +103,7 @@ function doliProductStock($product, $refresh = false, $nohtml = false, $array_op $mstock = array(); $warehouse = doliconst('DOLICONNECT_ID_WAREHOUSE', $refresh); if (!empty($product->type) && empty(doliconst('STOCK_SUPPORTS_SERVICES', $refresh))) { - $mstock['stock'] = 1; + $mstock['stock'] = 999999; } elseif (isset($product->stock_warehouse) && !empty($product->stock_warehouse) && !empty($warehouse) && $warehouse > 0) { if (isset($product->stock_warehouse->$warehouse)) { $mstock['stock'] = min(array($product->stock_reel,$product->stock_warehouse->$warehouse->real,$product->stock_theorique)); @@ -113,7 +113,7 @@ function doliProductStock($product, $refresh = false, $nohtml = false, $array_op } elseif (isset($product->stock_theorique) && isset($product->stock_reel)) { $mstock['stock'] = min(array($product->stock_theorique,$product->stock_reel)); } else { - $mstock['stock'] = 99; + $mstock['stock'] = 999999; } if (isset($product->array_options->options_packaging) && !empty($product->array_options->options_packaging)) { $mstock['step'] = $product->array_options->options_packaging;