Trad: Traduction des types de socits

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

@ -966,35 +966,40 @@ 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()
{
$effs = array();
/*
* Lignes
*/ */
$sql = "SELECT id, libelle"; function typent_array()
$sql .= " FROM ".MAIN_DB_PREFIX."c_typent"; {
$sql .= " ORDER BY id ASC"; global $langs;
if ($this->db->query($sql))
{
$num = $this->db->num_rows();
$i = 0;
while ($i < $num) $effs = array();
{
$objp = $this->db->fetch_object(); $sql = "SELECT id, code, libelle";
$effs[$objp->id] = $objp->libelle; $sql .= " FROM ".MAIN_DB_PREFIX."c_typent";
$i++; $sql .= " WHERE active = 1";
} $sql .= " ORDER by id";
$this->db->free(); $result=$this->db->query($sql);
} if ($result)
return $effs; {
} $num = $this->db->num_rows($result);
$i = 0;
while ($i < $num)
{
$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;
$i++;
}
$this->db->free($result);
}
return $effs;
}
/** /**