Update product.class.php
This commit is contained in:
parent
0d9d9498e2
commit
d0698735d6
@ -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')
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user