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 * 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 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 * @param type 0=Shell, 1=Buy
* \return string Label of status * @return string Label of status
*/ */
function getLibStatut($mode=0, $type=0) function getLibStatut($mode=0, $type=0)
{ {
@ -2238,11 +2238,11 @@ class Product extends CommonObject
} }
/** /**
* \brief Return label of a given status * Return label of a given status
* \param status Statut * @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 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" * @param type 0=Status "to sell", 1=Status "to buy"
* \return string Label of status * @return string Label of status
*/ */
function LibStatut($status,$mode=0,$type=0) function LibStatut($status,$mode=0,$type=0)
{ {

View File

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