Trad: Traduction des types de sociétés

This commit is contained in:
Laurent Destailleur 2005-03-28 14:09:34 +00:00
parent 48cc98f4c0
commit 8ae1ca21fc
3 changed files with 46 additions and 31 deletions

View File

@ -66,3 +66,8 @@ ThisUserIsNot=This user is not a prospect, customer nor supplier
VATIntraCheckableOnEUSite=Intracomunnautary VAT can be checked on European commision <a href="http://europa.eu.int/comm/taxation_customs/vies/en/vieshome.htm" target="_blank">site</a> VATIntraCheckableOnEUSite=Intracomunnautary VAT can be checked on European commision <a href="http://europa.eu.int/comm/taxation_customs/vies/en/vieshome.htm" target="_blank">site</a>
NorProspectNorCustomer=Nor prospect, nor customer NorProspectNorCustomer=Nor prospect, nor customer
Staff=Staff Staff=Staff
TE_STARTUP=Startup
TE_GROUP=Large company
TE_MEDIUM=Small or medium company
TE_ADMIN=Governemental
TE_OTHER=Other

View File

@ -66,3 +66,8 @@ ThisUserIsNot=Cet utilisateur n'est pas un prospect, client ni fournisseur
VATIntraCheckableOnEUSite=Numéro TVA intra communautaire vérifiable sur le <a href="http://europa.eu.int/comm/taxation_customs/vies/fr/vieshome.htm" target="_blank">site</a> de la commission européenne VATIntraCheckableOnEUSite=Numéro TVA intra communautaire vérifiable sur le <a href="http://europa.eu.int/comm/taxation_customs/vies/fr/vieshome.htm" target="_blank">site</a> de la commission européenne
NorProspectNorCustomer=Ni client, ni prospect NorProspectNorCustomer=Ni client, ni prospect
Staff=Effectifs Staff=Effectifs
TE_STARTUP=Startup
TE_GROUP=Grande société
TE_MEDIUM=PME/PMI
TE_ADMIN=Administration
TE_OTHER=Autre

View File

@ -967,32 +967,37 @@ class Societe {
} }
/** /**
* \brief Renvoie la liste des types de parties * \brief Renvoie la liste des types actifs de sociétés
* \return array tableau des types * \return array tableau des types
*/ */
function typent_array() function typent_array()
{ {
global $langs;
$effs = array(); $effs = array();
/*
* Lignes $sql = "SELECT id, code, libelle";
*/
$sql = "SELECT id, libelle";
$sql .= " FROM ".MAIN_DB_PREFIX."c_typent"; $sql .= " FROM ".MAIN_DB_PREFIX."c_typent";
$sql .= " ORDER BY id ASC"; $sql .= " WHERE active = 1";
if ($this->db->query($sql)) $sql .= " ORDER by id";
$result=$this->db->query($sql);
if ($result)
{ {
$num = $this->db->num_rows(); $num = $this->db->num_rows($result);
$i = 0; $i = 0;
while ($i < $num) while ($i < $num)
{ {
$objp = $this->db->fetch_object(); $objp = $this->db->fetch_object($result);
if ($langs->trans($objp->code) != $objp->code)
$effs[$objp->id] = $langs->trans($objp->code);
else
$effs[$objp->id] = $objp->libelle; $effs[$objp->id] = $objp->libelle;
$i++; $i++;
} }
$this->db->free(); $this->db->free($result);
} }
return $effs; return $effs;
} }