2
0
forked from Wavyzz/dolibarr

Ajout liste commandes brouillons sur espace fournisseur

This commit is contained in:
Laurent Destailleur
2007-03-29 20:07:44 +00:00
parent 6daa166771
commit 617b2e038f
7 changed files with 173 additions and 55 deletions

View File

@@ -2057,7 +2057,32 @@ class Commande extends CommonObject
}
/**
/**
\brief Renvoie nom clicable (avec eventuellement le picto)
\param withpicto 0=Pas de picto, 1=Inclut le picto dans le lien, 2=Picto seul
\param option Sur quoi pointe le lien
\return string Chaine avec URL
*/
function getNomUrl($withpicto=0,$option='')
{
global $langs;
$result='';
$lien = '<a href="'.DOL_URL_ROOT.'/compta/commande/fiche.php?id='.$this->id.'">';
$lienfin='</a>';
$picto='order';
$label=$langs->trans("ShowOrder").': '.$this->ref;
if ($withpicto) $result.=($lien.img_object($label,$picto).$lienfin);
if ($withpicto && $withpicto != 2) $result.=' ';
$result.=$lien.$this->ref.$lienfin;
return $result;
}
/**
* \brief Charge les informations d'ordre info dans l'objet commande
* \param id Id de la commande a charger
*/