Fix: utf-8

Todo: Monaco, Norway and Switzerland used vat rules of EEE ?
This commit is contained in:
Regis Houssin 2009-07-30 22:38:07 +00:00
parent 1305216a53
commit 3cd1870ffb
9 changed files with 136 additions and 148 deletions

View File

@ -1,13 +1,9 @@
#Tue Jul 28 19:24:41 CEST 2009
#Fri Jul 31 00:34:31 CEST 2009
eclipse.preferences.version=1
encoding//dev/initdemo/initdemo.sql=UTF-8
encoding//dev/skeletons/modMyModule.class.php=ISO-8859-1
encoding//htdocs/about.php=ISO-8859-1
encoding//htdocs/adherents/adherent.class.php=ISO-8859-1
encoding//htdocs/admin/adherent.php=ISO-8859-1
encoding//htdocs/admin/company.php=ISO-8859-1
encoding//htdocs/admin/fckeditor.php=ISO-8859-1
encoding//htdocs/admin/index.php=UTF-8
encoding//htdocs/admin/menus/index.php=ISO-8859-1
encoding//htdocs/admin/security.php=ISO-8859-1
encoding//htdocs/admin/system/database-tables-contraintes.php=ISO-8859-1
@ -626,12 +622,7 @@ encoding//htdocs/product/templates/livrecontrat/livrecontrat-edit.tpl=UTF-8
encoding//htdocs/product/templates/livrecontrat/livrecontrat-view.tpl=UTF-8
encoding//htdocs/product/templates/livrecouverture/livrecouverture-edit.tpl=UTF-8
encoding//htdocs/product/templates/livrecouverture/livrecouverture-view.tpl=UTF-8
encoding//htdocs/product/fiche.php=ISO-8859-1
encoding//htdocs/product/reassort.php=ISO-8859-1
encoding//htdocs/product/stats/fiche.php=ISO-8859-1
encoding//htdocs/projet/tasks/fiche.php=ISO-8859-1
encoding//htdocs/soc.php=ISO-8859-1
encoding//htdocs/societe.class.php=ISO-8859-1
encoding//htdocs/societe/ajaxcompanies.php=ISO-8859-1
encoding//htdocs/stats.class.php=ISO-8859-1
encoding//htdocs/theme/auguria/auguria.css.php=ISO-8859-1

View File

@ -230,111 +230,106 @@ $constantes=array(
'ADHERENT_CARD_FOOTER_TEXT',
'ADHERENT_ETIQUETTE_TYPE'
);
print_fiche_titre($langs->trans("Other"),'','');
print_fiche_titre($langs->trans("Other"),'','');
print $langs->trans("FollowingConstantsWillBeSubstituted").'<br>';
print '%DOL_MAIN_URL_ROOT%, %ID%, %PRENOM%, %NOM%, %LOGIN%, %PASSWORD%,';
print '%SOCIETE%, %ADRESSE%, %CP%, %VILLE%, %PAYS%, %EMAIL%, %NAISS%, %PHOTO%, %TYPE%,';
//print '%INFOS%'; Deprecated
print '<br>';
print $langs->trans("FollowingConstantsWillBeSubstituted").'<br>';
print '%DOL_MAIN_URL_ROOT%, %ID%, %PRENOM%, %NOM%, %LOGIN%, %PASSWORD%,';
print '%SOCIETE%, %ADRESSE%, %CP%, %VILLE%, %PAYS%, %EMAIL%, %NAISS%, %PHOTO%, %TYPE%,';
//print '%INFOS%'; Deprecated
print '<br>';
form_constantes($constantes);
form_constantes($constantes);
$db->close();
$db->close();
print '<br>';
print '<br>';
llxFooter('$Date$ - $Revision$');
function form_constantes($tableau)
{
global $db,$bc,$langs;
$form = new Form($db);
llxFooter('$Date$ - $Revision$');
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
print '<td>'.$langs->trans("Description").'</td>';
print '<td>'.$langs->trans("Value").'</td>';
print '<td>'.$langs->trans("Type").'</td>';
print '<td align="center" width="80">'.$langs->trans("Action").'</td>';
print "</tr>\n";
$var=true;
function form_constantes($tableau)
foreach($tableau as $const)
{
$sql = "SELECT rowid, name, value, type, note FROM ".MAIN_DB_PREFIX."const WHERE name='".$const."'";
$result = $db->query($sql);
if ($result)
{
// Variables globales
global $db,$bc,$langs;
$form = new Form($db);
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
print '<td>'.$langs->trans("Description").'</td>';
print '<td>'.$langs->trans("Value").'</td>';
print '<td>'.$langs->trans("Type").'</td>';
print '<td align="center" width="80">'.$langs->trans("Action").'</td>';
print "</tr>\n";
$var=true;
$obj = $db->fetch_object($result);
$var=!$var;
print '<form action="adherent.php" method="POST">';
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
print '<input type="hidden" name="action" value="update">';
print '<input type="hidden" name="rowid" value="'.$rowid.'">';
print '<input type="hidden" name="constname" value="'.$obj->name.'">';
print '<input type="hidden" name="constnote" value="'.nl2br($obj->note).'">';
foreach($tableau as $const)
print "<tr $bc[$var]>";
// Affiche nom constante
print '<td>';
print $langs->trans("Desc".$const) != ("Desc".$const) ? $langs->trans("Desc".$const) : $obj->note;
print "</td>\n";
if ($const == 'ADHERENT_ETIQUETTE_TYPE')
{
$sql = "SELECT rowid, name, value, type, note FROM ".MAIN_DB_PREFIX."const WHERE name='".$const."'";
$result = $db->query($sql);
if ($result)
{
$obj = $db->fetch_object($result);
$var=!$var;
print '<form action="adherent.php" method="POST">';
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
print '<input type="hidden" name="action" value="update">';
print '<input type="hidden" name="rowid" value="'.$rowid.'">';
print '<input type="hidden" name="constname" value="'.$obj->name.'">';
print '<input type="hidden" name="constnote" value="'.nl2br($obj->note).'">';
print '<td>';
// List of possible labels. Values must exists in
// file htdocs/adherents/PDF_Card.class.php
require_once(DOL_DOCUMENT_ROOT.'/includes/modules/member/PDF_card.class.php');
$pdfcardstatic=new PDF_card('5160',1,1,'mm');
$arrayoflabels=array_keys($pdfcardstatic->_Avery_Labels);
print "<tr $bc[$var]>";
// Affiche nom constante
print '<td>';
print $langs->trans("Desc".$const) != ("Desc".$const) ? $langs->trans("Desc".$const) : $obj->note;
print "</td>\n";
if ($const == 'ADHERENT_ETIQUETTE_TYPE')
{
print '<td>';
// List of possible labels. Values must exists in
// file htdocs/adherents/PDF_Card.class.php
require_once(DOL_DOCUMENT_ROOT.'/includes/modules/member/PDF_card.class.php');
$pdfcardstatic=new PDF_card('5160',1,1,'mm');
$arrayoflabels=array_keys($pdfcardstatic->_Avery_Labels);
$form->select_array('constvalue',$arrayoflabels,$obj->value,1,0,1);
print '</td><td>';
$form->select_array('consttype',array('yesno','texte','chaine'),1);
}
else
{
print '<td>';
if ($obj->type == 'yesno')
{
print $form->selectyesno('constvalue',$obj->value,1);
print '</td><td>';
$form->select_array('consttype',array('yesno','texte','chaine'),0);
}
elseif ($obj->type == 'texte')
{
print '<textarea class="flat" name="constvalue" cols="35" rows="5" wrap="soft">';
print $obj->value;
print "</textarea>\n";
print '</td><td>';
$form->select_array('consttype',array('yesno','texte','chaine'),1);
}
else
{
print '<input type="text" class="flat" size="30" name="constvalue" value="'.$obj->value.'">';
print '</td><td>';
$form->select_array('consttype',array('yesno','texte','chaine'),2);
}
print '</td>';
}
print '<td align="center">';
print '<input type="submit" class="button" value="'.$langs->trans("Update").'" name="Button"> &nbsp;';
// print '<a href="adherent.php?name='.$const.'&action=unset">'.img_delete().'</a>';
print "</td></tr>\n";
print '</form>';
$i++;
}
$form->select_array('constvalue',$arrayoflabels,$obj->value,1,0,1);
print '</td><td>';
$form->select_array('consttype',array('yesno','texte','chaine'),1);
}
print '</table>';
else
{
print '<td>';
if ($obj->type == 'yesno')
{
print $form->selectyesno('constvalue',$obj->value,1);
print '</td><td>';
$form->select_array('consttype',array('yesno','texte','chaine'),0);
}
else if ($obj->type == 'texte')
{
print '<textarea class="flat" name="constvalue" cols="35" rows="5" wrap="soft">';
print $obj->value;
print "</textarea>\n";
print '</td><td>';
$form->select_array('consttype',array('yesno','texte','chaine'),1);
}
else
{
print '<input type="text" class="flat" size="30" name="constvalue" value="'.$obj->value.'">';
print '</td><td>';
$form->select_array('consttype',array('yesno','texte','chaine'),2);
}
print '</td>';
}
print '<td align="center">';
print '<input type="submit" class="button" value="'.$langs->trans("Update").'" name="Button"> &nbsp;';
// print '<a href="adherent.php?name='.$const.'&action=unset">'.img_delete().'</a>';
print "</td></tr>\n";
print '</form>';
$i++;
}
}
print '</table>';
}
?>
?>

View File

@ -84,7 +84,7 @@ if ( (isset($_POST["action"]) && $_POST["action"] == 'update')
}
else dol_syslog($imgThumbSmall);
// Création de la vignette de la page "Société/Institution"
// Creation de la vignette de la page "Societe/Institution"
$imgThumbMini = vignette($conf->mycompany->dir_output.'/logos/'.$original_file, 100, 30, '_mini', $quality);
if (eregi('([^\\\/:]+)$',$imgThumbMini,$reg))
{
@ -135,7 +135,7 @@ if ($_GET["action"] == 'addthumb')
// Create thumbs of logo
if ($isimage > 0)
{
// Création de la vignette de la page login
// Creation de la vignette de la page login
$imgThumbSmall = vignette($conf->mycompany->dir_output.'/logos/'.$_GET["file"], 200, 100, '_small',80);
if (image_format_supported($imgThumbSmall) >= 0 && eregi('([^\\\/:]+)$',$imgThumbSmall,$reg))
{
@ -144,7 +144,7 @@ if ($_GET["action"] == 'addthumb')
}
else dol_syslog($imgThumbSmall);
// Création de la vignette de la page "Société/Institution"
// Creation de la vignette de la page "Societe/Institution"
$imgThumbMini = vignette($conf->mycompany->dir_output.'/logos/'.$_GET["file"], 100, 30, '_mini',80);
if (image_format_supported($imgThumbSmall) >= 0 && eregi('([^\\\/:]+)$',$imgThumbMini,$reg))
{
@ -207,7 +207,7 @@ if ((isset($_GET["action"]) && $_GET["action"] == 'edit')
|| (isset($_POST["action"]) && $_POST["action"] == 'updateedit') )
{
/**
* Edition des paramètres
* Edition des parametres
*/
print '<form enctype="multipart/form-data" method="post" action="'.$_SERVER["PHP_SELF"].'" name="form_index">';
@ -306,7 +306,7 @@ if ((isset($_GET["action"]) && $_GET["action"] == 'edit')
print '<br>';
// Identifiants de la société (propre au pays)
// Identifiants de la societe (propre au pays)
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre"><td>'.$langs->trans("CompanyIds").'</td><td>'.$langs->trans("Value").'</td></tr>';
$var=true;
@ -421,7 +421,7 @@ if ((isset($_GET["action"]) && $_GET["action"] == 'edit')
/*
* Début d'année fiscale
* Debut d'annee fiscale
*/
print '<br>';
print '<table class="noborder" width="100%">';
@ -457,12 +457,12 @@ if ((isset($_GET["action"]) && $_GET["action"] == 'edit')
print "</table>";
print "</td></tr>\n";
/* Je désactive cette option "facturation" car ce statut fiscal n'existe pas. Seul le réel et franchise existe.
/* Je desactive cette option "facturation" car ce statut fiscal n'existe pas. Seul le reel et franchise existe.
Cette option ne doit donc pas etre en "exclusif" avec l'option fiscale de gestion de tva. Peut etre faut-il
une option a part qui n'entre pas en conflit avec les choix "assujéti TVA" ou "non".
une option a part qui n'entre pas en conflit avec les choix "assujeti TVA" ou "non".
$var=!$var;
print "<tr ".$bc[$var]."><td width=\"140\"><label><input type=\"radio\" name=\"optiontva\" value=\"facturation\"".($conf->global->FACTURE_TVAOPTION == "facturation"?" checked":"")."> Option facturation</label></td>";
print "<td colspan=\"2\">L'option 'facturation' est utilisée par les entreprises qui payent la TVA à facturation (vente de matériel).</td></tr>\n";
print "<td colspan=\"2\">L'option 'facturation' est utilisee par les entreprises qui payent la TVA a facturation (vente de materiel).</td></tr>\n";
*/
$var=!$var;
@ -486,7 +486,7 @@ if ((isset($_GET["action"]) && $_GET["action"] == 'edit')
else
{
/*
* Affichage des paramètres
* Affichage des parametres
*/
if ($message) print $message.'<br>';
@ -549,7 +549,7 @@ else
print $mysoc->logo;
print '</td><td valign="center" align="right">';
// On propose la génération de la vignette si elle n'existe pas
// On propose la generation de la vignette si elle n'existe pas
if (!is_file($conf->mycompany->dir_output.'/logos/thumbs/'.$mysoc->logo_mini) && eregi('(\.jpg|\.jpeg|\.png)$',$mysoc->logo))
{
print '<a href="'.$_SERVER["PHP_SELF"].'?action=addthumb&amp;file='.urlencode($mysoc->logo).'">'.img_refresh($langs->trans('GenerateThumb')).'&nbsp;&nbsp;</a>';
@ -575,7 +575,7 @@ else
print '<br>';
// Identifiants de la société (propre au pays)
// Identifiants de la societe (propre au pays)
print '<form name="formsoc" method="post">';
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
print '<table class="noborder" width="100%">';
@ -702,7 +702,7 @@ else
print '</form>';
/*
* Début d'année fiscale
* Debut d'annee fiscale
*/
print '<br>';
print '<table class="noborder" width="100%">';
@ -769,18 +769,19 @@ llxFooter('$Date$ - $Revision$');
* \param code_iso Code iso de la devise
* \param withcode 1=affiche code + nom
* \return string Nom traduit de la devise
* TODO deplacer dans une classe
*/
function currency_name($code_iso,$withcode=0)
{
global $langs,$db;
// Si il existe une traduction, on peut renvoyer de suite le libellé
// Si il existe une traduction, on peut renvoyer de suite le libelle
if ($langs->trans("Currency".$code_iso)!="Currency".$code_iso)
{
return $langs->trans("Currency".$code_iso);
}
// Si pas de traduction, on consulte le libellé par défaut en table
// Si pas de traduction, on consulte le libelle par defaut en table
$sql = "SELECT label FROM ".MAIN_DB_PREFIX."c_currencies";
$sql.= " WHERE code_iso='".$code_iso."'";
@ -804,4 +805,4 @@ function currency_name($code_iso,$withcode=0)
}
}
?>
?>

View File

@ -44,7 +44,7 @@ $modules = array(
'MAILING' => 'FCKeditorForMailing',
'DETAILS' => 'FCKeditorForProductDetails',
);
// Conditions pour que l'option soit proposée
// Conditions pour que l'option soit proposee
$conditions = array(
'USER' => 1,
'SOCIETE' => $conf->societe->enabled,
@ -69,7 +69,7 @@ foreach($modules as $const => $desc)
if ($_GET["action"] == 'activate_'.strtolower($const))
{
dolibarr_set_const($db, "FCKEDITOR_ENABLE_".$const, "1",'chaine',0,'',$conf->entity);
// Si fckeditor est activé dans la description produit/service, on l'active dans les formulaires
// Si fckeditor est active dans la description produit/service, on l'active dans les formulaires
if ($const == 'PRODUCTDESC' && $conf->global->PRODUIT_DESC_IN_FORM)
{
dolibarr_set_const($db, "FCKEDITOR_ENABLE_DETAILS", "1",'chaine',0,'',$conf->entity);
@ -96,7 +96,7 @@ $linkback='<a href="'.DOL_URL_ROOT.'/admin/modules.php">'.$langs->trans("BackToM
print_fiche_titre($langs->trans("FCKEditor"),$linkback,'setup');
print '<br>';
/*
* Activation/désactivation de FCKeditor
* Activation/desactivation de FCKeditor
*/
$var=true;
@ -147,4 +147,4 @@ print '</table>';
$db->close();
llxFooter('$Date$ - $Revision$');
?>
?>

View File

@ -133,9 +133,9 @@ if ($_POST["action"] == 'add' && ($user->rights->produit->creer || $user->rights
if ( $value != $current_lang ) $e_product = $product;
// Produit spécifique
// Specific product
// $_POST n'est pas utilise dans la classe Product
// mais dans des classes qui hérite de Product
// mais dans des classes qui herite de Product
$id = $product->create($user);
if ($id > 0)
@ -202,7 +202,7 @@ if ($_POST["action"] == 'update' && ($user->rights->produit->creer || $user->rig
$mesg = $langs->trans("ErrorProductBadRefOrLabel");
}
// Produit spécifique
// Specific product
if ($product->canvas <> '' && file_exists('templates/product.'.$product->canvas.'.class.php') )
{
$class = 'Product'.ucfirst($product->canvas);
@ -564,7 +564,7 @@ $formproduct = new FormProduct($db);
/*
* Fiche création du produit
* Fiche creation du produit
*/
if ($_GET["action"] == 'create' && ($user->rights->produit->creer || $user->rights->service->creer))
{
@ -639,7 +639,7 @@ if ($_GET["action"] == 'create' && ($user->rights->produit->creer || $user->righ
print '<input name="seuil_stock_alerte" type="hidden" value="0">';
}
// Description (utilisé dans facture, propale...)
// Description (used in invoice, propal...)
print '<tr><td valign="top">'.$langs->trans("Description").'</td><td>';
if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_PRODUCTDESC)
@ -1042,7 +1042,7 @@ if ($_GET["id"] || $_GET["ref"])
print '</select>';
print '</td></tr>';
// Description (utilisé dans facture, propale...)
// Description (used in invoice, propal...)
print '<tr><td valign="top">'.$langs->trans("Description").'</td><td colspan="2">';
print "\n";
if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_PRODUCTDESC)
@ -1616,6 +1616,7 @@ llxFooter('$Date$ - $Revision$');
/**
* \brief Load tva_taux_value and tva_taux_libelle array
* \remarks Ne sert que pour smarty
* \ TODO deplacer dans une classe
*/
function load_tva($db,$name='tauxtva', $defaulttx='', $societe_vendeuse='', $societe_acheteuse='', $taux_produit='')
{
@ -1651,10 +1652,10 @@ function load_tva($db,$name='tauxtva', $defaulttx='', $societe_vendeuse='', $soc
}
}
// Définition du taux à pré-sélectionner
// Definition du taux a pre-selectionner
if ($defaulttx == '') $defaulttx=get_default_tva($societe_vendeuse,$societe_acheteuse,$taux_produit);
// Si taux par defaut n'a pu etre trouvé, on prend dernier.
// Comme ils sont triés par ordre croissant, dernier = plus élevé = taux courant
// Si taux par defaut n'a pu etre trouve, on prend dernier.
// Comme ils sont tries par ordre croissant, dernier = plus eleve = taux courant
if ($defaulttx == '') $defaulttx = $txtva[sizeof($txtva)-1];
$nbdetaux = sizeof($txtva);

View File

@ -300,4 +300,4 @@ else
$db->close();
llxFooter('$Date$ - $Revision$');
?>
?>

View File

@ -175,7 +175,7 @@ if ($_GET["id"] || $_GET["ref"])
$graph_data = array();
// \todo Test si deja existant et recent, on ne genere pas
// TODO Test si deja existant et recent, on ne genere pas
if ($key == 'propal') $graph_data = $product->get_nb_propal($socid,$mode);
if ($key == 'orders') $graph_data = $product->get_nb_order($socid,$mode);
if ($key == 'invoices') $graph_data = $product->get_nb_vente($socid,$mode);
@ -232,7 +232,7 @@ if ($_GET["id"] || $_GET["ref"])
//print $url;
print '<img src="'.$url.'" alt="'.$graphfiles[$key]['label'].'">';
print '</td></tr>';
// Date génération
// Date generation
print '<tr>';
if (file_exists($dir."/".$graphfiles[$key]['file']) && filemtime($dir."/".$graphfiles[$key]['file']) && ! $px->isGraphKo())
{
@ -272,4 +272,4 @@ else
$db->close();
llxFooter('$Date$ - $Revision$');
?>
?>

View File

@ -54,13 +54,13 @@ $soc = new Societe($db);
if ($_POST["getcustomercode"])
{
// On défini valeur pour code_client
// On defini valeur pour code_client
$_POST["code_client"]="aa";
}
if ($_POST["getsuppliercode"])
{
// On défini valeur pour code_fournisseur
// On defini valeur pour code_fournisseur
$_POST["code_fournisseur"]="aa";
}
@ -112,7 +112,7 @@ if ((! $_POST["getcustomercode"] && ! $_POST["getsuppliercode"])
$soc->effectif_id = $_POST["effectif_id"];
if ($_REQUEST["private"] == 1)
{
$soc->typent_id = 8; // TODO prévoir autre méthode si le champs "particulier" change de rowid
$soc->typent_id = 8; // TODO prevoir autre methode si le champs "particulier" change de rowid
}
else
{
@ -301,7 +301,7 @@ $_GET["action"] == 'create' || $_POST["action"] == 'create')
$modCodeFournisseur = new $module;
/*
* Fiche societe en mode création
* Fiche societe en mode creation
*/
if ($_GET["type"]=='f') { $soc->fournisseur=1; }
if ($_GET["type"]=='c') { $soc->client=1; }
@ -564,7 +564,7 @@ $_GET["action"] == 'create' || $_POST["action"] == 'create')
$html = new Form($db);
print '<tr><td>'.$langs->trans('VATIsUsed').'</td>';
print '<td>';
print $html->selectyesno('assujtva_value',1,1); // Assujeti par défaut en creation
print $html->selectyesno('assujtva_value',1,1); // Assujeti par defaut en creation
print '</td>';
// Code TVA
@ -634,7 +634,7 @@ elseif ($_GET["action"] == 'edit' || $_POST["action"] == 'edit')
}
require_once(DOL_DOCUMENT_ROOT ."/includes/modules/societe/".$module.".php");
$modCodeClient = new $module;
// On vérifie si la balise préfix est utilisée
// On verifie si la balise prefix est utilisee
if ($modCodeClient->code_auto)
{
$prefixCustomerIsUsed = $modCodeClient->verif_prefixIsUsed();
@ -647,7 +647,7 @@ elseif ($_GET["action"] == 'edit' || $_POST["action"] == 'edit')
}
require_once(DOL_DOCUMENT_ROOT ."/includes/modules/societe/".$module.".php");
$modCodeFournisseur = new $module;
// On vérifie si la balise préfix est utilisée
// On verifie si la balise prefix est utilisee
if ($modCodeFournisseur->code_auto)
{
$prefixSupplierIsUsed = $modCodeFournisseur->verif_prefixIsUsed();
@ -722,7 +722,7 @@ elseif ($_GET["action"] == 'edit' || $_POST["action"] == 'edit')
print '<tr><td>'.$langs->trans('Name').'</td><td colspan="3"><input type="text" size="40" name="nom" value="'.$soc->nom.'"></td></tr>';
print '<tr><td>'.$langs->trans("Prefix").'</td><td colspan="3">';
// On ne permet pas la modification du préfix en mode de numérotation auto utilisant le prefix
// On ne permet pas la modification du prefix en mode de numerotation auto utilisant le prefix
if (($prefixCustomerIsUsed || $prefixSupplierIsUsed) && $soc->prefix_comm)
{
print '<input type="hidden" name="prefix_comm" value="'.$soc->prefix_comm.'">';
@ -945,7 +945,7 @@ elseif ($_GET["action"] == 'edit' || $_POST["action"] == 'edit')
else
{
/*
* Fiche société en mode visu
* Fiche societe en mode visu
*/
$soc = new Societe($db);
$soc->id = $socid;

View File

@ -1874,9 +1874,9 @@ class Societe extends CommonObject
'LV', // Latvia
'LT', // Lithuania
'LU', // Luxembourg
'MO', // Monaco
'MO', // Monaco ? TODO verify vat rules
'MT', // Malta
'NO', // Norway
'NO', // Norway ? TODO verify vat rules
'PL', // Poland
'PT', // Portugal
'RO', // Romania
@ -1884,7 +1884,7 @@ class Societe extends CommonObject
'SI', // Slovenia
'ES', // Spain
'SE', // Sweden
'CH', // Switzerland
'CH', // Switzerland ? TODO verify vat rules
);
//print "dd".$this->pays_code;
return in_array($this->pays_code,$country_code_in_EEC);