Modification de l'affichage chiffre d'affaire, estimé, issue #0000883

This commit is contained in:
Michael RICOIS 2011-10-07 06:59:22 +00:00
parent 0e47f9b053
commit 8d06e9bb8a

View File

@ -956,24 +956,13 @@ class IdentiteEntreprise
}
public function getChiffreAffaireTexte()
{
if ($this->identite->TrancheCAType=='E' && !empty($this->identite->Bilan->CA)){
$data = $this->moneyKM($this->identite->Bilan->CA).$this->deviseText($this->identite->Bilan->Devise).' au '.
WDate::dateT('Ymd', 'd/m/Y',$this->identite->Bilan->Cloture);
} elseif (!empty($this->identite->TrancheCALib) && $this->identite->TrancheCALib!='N/C') {
if (!empty($this->identite->TrancheCALib) && $this->identite->TrancheCALib!='N/C')
{
$data = $this->identite->TrancheCALib;
$data.= empty($this->identite->AnneeTCA) || $this->identite->AnneeTCA=='0000' ? '' : ' en '.$this->identite->AnneeTCA;
} elseif (!empty($this->identite->Bilan->CA)) {
$data = $this->moneyKM($this->identite->Bilan->CA).$this->deviseText($this->identite->Bilan->Devise).' au '.
WDate::dateT('Ymd', 'd/m/Y',$this->identite->Bilan->Cloture);
$data.= empty($this->identite->AnneeTCA) || $this->identite->AnneeTCA=='0000' ? '' : ' en '.$this->identite->AnneeTCA;
} else {
}
else
{
$data = 'N/C';
}
return $data;