Trad: Traduction des types de socits
This commit is contained in:
parent
48cc98f4c0
commit
8ae1ca21fc
@ -65,4 +65,9 @@ EditCompany=Edit company
|
|||||||
ThisUserIsNot=This user is not a prospect, customer nor supplier
|
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
|
||||||
@ -65,4 +65,9 @@ EditCompany=Edition soci
|
|||||||
ThisUserIsNot=Cet utilisateur n'est pas un prospect, client ni fournisseur
|
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
|
||||||
@ -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()
|
||||||
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 .= " WHERE active = 1";
|
||||||
$sql .= " ORDER BY id ASC";
|
$sql .= " ORDER by id";
|
||||||
if ($this->db->query($sql))
|
$result=$this->db->query($sql);
|
||||||
{
|
if ($result)
|
||||||
$num = $this->db->num_rows();
|
{
|
||||||
$i = 0;
|
$num = $this->db->num_rows($result);
|
||||||
|
$i = 0;
|
||||||
while ($i < $num)
|
|
||||||
{
|
while ($i < $num)
|
||||||
$objp = $this->db->fetch_object();
|
{
|
||||||
$effs[$objp->id] = $objp->libelle;
|
$objp = $this->db->fetch_object($result);
|
||||||
$i++;
|
if ($langs->trans($objp->code) != $objp->code)
|
||||||
}
|
$effs[$objp->id] = $langs->trans($objp->code);
|
||||||
$this->db->free();
|
else
|
||||||
}
|
$effs[$objp->id] = $objp->libelle;
|
||||||
return $effs;
|
$i++;
|
||||||
}
|
}
|
||||||
|
$this->db->free($result);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $effs;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user