From ade035733d465208b150c30c58bca51714bca39a Mon Sep 17 00:00:00 2001 From: VESSILLER Date: Tue, 18 Feb 2025 17:16:42 +0100 Subject: [PATCH] QUAL multiply can be float in get child arbo function --- htdocs/product/class/product.class.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 37c0f19ee04..29ee1387a94 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -5337,12 +5337,12 @@ class Product extends CommonObject * Function recursive, used only by get_arbo_each_prod(), to build tree of subproducts into ->res * Define value of this->res * - * @param array $prod Products array - * @param string $compl_path Directory path of parents to add before - * @param int $multiply Because each sublevel must be multiplicated by parent nb - * @param int $level Init level - * @param int $id_parent Id parent - * @param int<0,1> $ignore_stock_load Ignore stock load + * @param array $prod Products array + * @param string $compl_path Directory path of parents to add before + * @param int|float $multiply Because each sublevel must be multiplicated by parent nb + * @param int $level Init level + * @param int $id_parent Id parent + * @param int<0,1> $ignore_stock_load Ignore stock load * @return void */ public function fetch_prod_arbo($prod, $compl_path = '', $multiply = 1, $level = 1, $id_parent = 0, $ignore_stock_load = 0) @@ -5409,7 +5409,7 @@ class Product extends CommonObject * Build the tree of subproducts and return it. * this->sousprods must have been loaded by this->get_sousproduits_arbo() * - * @param int $multiply Because each sublevel must be multiplicated by parent nb + * @param int|float $multiply Because each sublevel must be multiplicated by parent nb * @param int<0,1> $ignore_stock_load Ignore stock load * @return array,entity:CommonObject}> Array with tree */