diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index b5f278bcf61..99590e27a36 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -5367,11 +5367,12 @@ class Product extends CommonObject } /** - * Returns the text label from units dictionary - * A langs->trans() must be called on result to get translated value. + * Returns the label, shot_label or code found in units dictionary from ->fk_unit. + * A langs->trans() must be called on result to get translated value. * * @param string $type Label type (long, short or code) * @return string|int <0 if ko, label if ok + * @see getLabelOfUnit() in CommonObjectLine */ public function getLabelOfUnit($type = 'long') {