This commit is contained in:
Laurent Destailleur 2011-05-18 16:42:59 +00:00
parent f9844ece6f
commit 39bcf8bd63
2 changed files with 19 additions and 18 deletions

View File

@ -2224,10 +2224,10 @@ class Product extends CommonObject
}
/**
* \brief Return label of status of object
* \param mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto
* \param type 0=Shell, 1=Buy
* \return string Label of status
* Return label of status of object
* @param mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto
* @param type 0=Shell, 1=Buy
* @return string Label of status
*/
function getLibStatut($mode=0, $type=0)
{
@ -2238,11 +2238,11 @@ class Product extends CommonObject
}
/**
* \brief Return label of a given status
* \param status Statut
* \param mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto
* \param type 0=Status "to sell", 1=Status "to buy"
* \return string Label of status
* Return label of a given status
* @param status Statut
* @param mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto
* @param type 0=Status "to sell", 1=Status "to buy"
* @return string Label of status
*/
function LibStatut($status,$mode=0,$type=0)
{

View File

@ -369,8 +369,7 @@ class Entrepot extends CommonObject
$obj = $this->db->fetch_object($result);
$ret['nb']=$obj->nb;
$ret['value']=$obj->value;
$this->db->free();
$this->db->free($result);
}
else
{
@ -382,9 +381,10 @@ class Entrepot extends CommonObject
}
/**
* \brief Retourne le libell<EFBFBD> du statut d'un entrepot (ouvert, ferme)
* \param mode 0=libell<EFBFBD> long, 1=libell<EFBFBD> court, 2=Picto + Libell<EFBFBD> court, 3=Picto, 4=Picto + Libell<EFBFBD> long
* \return string Libelle
* Return label of status of object
* @param mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto
* @param type 0=Closed, 1=Opened
* @return string Label of status
*/
function getLibStatut($mode=0)
{
@ -392,10 +392,11 @@ class Entrepot extends CommonObject
}
/**
* \brief Renvoi le libell<EFBFBD> d'un statut donn<EFBFBD>
* \param statut Id statut
* \param mode 0=libell<EFBFBD> long, 1=libell<EFBFBD> court, 2=Picto + Libell<EFBFBD> court, 3=Picto, 4=Picto + Libell<EFBFBD> long, 5=Libell<EFBFBD> court + Picto
* \return string Libell<EFBFBD> du statut
* Return label of a given status
* @param status Statut
* @param mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto
* @param type 0=Status "closed", 1=Status "opened"
* @return string Label of status
*/
function LibStatut($statut,$mode=0)
{