mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-26 10:43:22 +01:00
Ajout methode getLibStatut pour homognisation du code
This commit is contained in:
@@ -906,6 +906,27 @@ class Commande
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* \brief Retourne le libell<6C> du statut de la commande
|
||||
* \return string Libell<6C>
|
||||
*/
|
||||
function getLibStatut()
|
||||
{
|
||||
return $this->LibStatut($this->statut);
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Renvoi le libell<6C> d'un statut donn<6E>
|
||||
* \param statut id statut
|
||||
* \return string Libell<6C>
|
||||
*/
|
||||
function LibStatut($statut)
|
||||
{
|
||||
return $this->status_label_short[$statut];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* \brief Charge les informations d'ordre info dans l'objet commande
|
||||
* \param id Id de la commande a charger
|
||||
|
||||
Reference in New Issue
Block a user