Update product.class.php

This commit is contained in:
Laurent Destailleur 2020-09-14 00:14:25 +02:00 committed by GitHub
parent 0d9d9498e2
commit d0698735d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5367,11 +5367,12 @@ class Product extends CommonObject
} }
/** /**
* Returns the text label from units dictionary * 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. * A langs->trans() must be called on result to get translated value.
* *
* @param string $type Label type (long, short or code) * @param string $type Label type (long, short or code)
* @return string|int <0 if ko, label if ok * @return string|int <0 if ko, label if ok
* @see getLabelOfUnit() in CommonObjectLine
*/ */
public function getLabelOfUnit($type = 'long') public function getLabelOfUnit($type = 'long')
{ {