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

@@ -65,4 +65,9 @@ EditCompany=Edit company
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>
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

@@ -65,4 +65,9 @@ EditCompany=Edition soci
ThisUserIsNot=Cet utilisateur n'est pas un prospect, client ni fournisseur
VATIntraCheckableOnEUSite=Num<75>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<6F>enne
NorProspectNorCustomer=Ni client, ni prospect
Staff=Effectifs
Staff=Effectifs
TE_STARTUP=Startup
TE_GROUP=Grande soci<63>t<EFBFBD>
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
* \return array tableau des types
*/
function typent_array()
{
$effs = array();
/*
* Lignes
*/
$sql = "SELECT id, libelle";
$sql .= " FROM ".MAIN_DB_PREFIX."c_typent";
$sql .= " ORDER BY id ASC";
if ($this->db->query($sql))
{
$num = $this->db->num_rows();
$i = 0;
while ($i < $num)
{
$objp = $this->db->fetch_object();
$effs[$objp->id] = $objp->libelle;
$i++;
}
$this->db->free();
}
return $effs;
}
/**
* \brief Renvoie la liste des types actifs de soci<63>t<EFBFBD>s
* \return array tableau des types
*/
function typent_array()
{
global $langs;
$effs = array();
$sql = "SELECT id, code, libelle";
$sql .= " FROM ".MAIN_DB_PREFIX."c_typent";
$sql .= " WHERE active = 1";
$sql .= " ORDER by id";
$result=$this->db->query($sql);
if ($result)
{
$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;
}
/**