mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-25 18:23:21 +01:00
Fix: A lot of fixes.
This commit is contained in:
@@ -75,6 +75,7 @@ class Commande extends CommonObject
|
||||
var $nbtodo;
|
||||
var $nbtodolate;
|
||||
|
||||
|
||||
/**
|
||||
* \brief Constructeur
|
||||
* \param DB Handler d'acc<63>s base
|
||||
@@ -87,19 +88,13 @@ class Commande extends CommonObject
|
||||
$this->socid = $socid;
|
||||
$this->id = $commandeid;
|
||||
|
||||
$this->sources[0] = $langs->trans('OrderSource0');
|
||||
$this->sources[1] = $langs->trans('OrderSource1');
|
||||
$this->sources[2] = $langs->trans('OrderSource2');
|
||||
$this->sources[3] = $langs->trans('OrderSource3');
|
||||
$this->sources[4] = $langs->trans('OrderSource4');
|
||||
$this->sources[5] = $langs->trans('OrderSource5');
|
||||
|
||||
$this->remise = 0;
|
||||
$this->remise_percent = 0;
|
||||
|
||||
$this->products = array();
|
||||
}
|
||||
|
||||
|
||||
/** \brief Cr<43><72> la commande depuis une propale existante
|
||||
\param user Utilisateur qui cr<63>e
|
||||
\param propale_id id de la propale qui sert de mod<6F>le
|
||||
@@ -1855,7 +1850,21 @@ class Commande extends CommonObject
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* \brief Return source label of order
|
||||
* \return string Label
|
||||
*/
|
||||
function getLabelSource()
|
||||
{
|
||||
global $langs;
|
||||
|
||||
$label=$langs->trans('OrderSource'.$this->source);
|
||||
// \TODO Si libelle non trouve, on va chercher en base dans dictionnaire
|
||||
|
||||
|
||||
return $label;
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Retourne le libell<6C> du statut de la commande
|
||||
* \param mode 0=libell<6C> long, 1=libell<6C> court, 2=Picto + Libell<6C> court, 3=Picto, 4=Picto + Libell<6C> long, 5=Libell<6C> court + Picto
|
||||
|
||||
Reference in New Issue
Block a user