diff --git a/htdocs/admin/compta.php b/htdocs/admin/compta.php
index 9bfa452e162..b3fa65f9d2f 100644
--- a/htdocs/admin/compta.php
+++ b/htdocs/admin/compta.php
@@ -20,8 +20,8 @@
/**
* \file htdocs/admin/compta.php
- * \ingroup tax
- * \brief Page de configuration du module tax
+ * \ingroup compta
+ * \brief Page to setup accountancy module
* \version $Id$
*/
@@ -115,81 +115,75 @@ print "\n";
print "
\n";
// Cas des autres parametres COMPTA_*
-$sql = "SELECT rowid, name, value, type, note";
+$list=array('COMPTA_PRODUCT_BUY_ACCOUNT','COMPTA_PRODUCT_SOLD_ACCOUNT','COMPTA_SERVICE_BUY_ACCOUNT','COMPTA_SERVICE_SOLD_ACCOUNT',
+'COMPTA_VAT_ACCOUNT','COMPTA_ACCOUNT_CUSTOMER','COMPTA_ACCOUNT_SUPPLIER'
+);
+
+/*$sql = "SELECT rowid, name, value, type, note";
$sql.= " FROM ".MAIN_DB_PREFIX."const";
$sql.= " WHERE name LIKE 'COMPTA_%'";
$sql.= " AND name NOT IN ('COMPTA_MODE')";
$sql.= " AND entity = ".$conf->entity;
-
$result = $db->query($sql);
if ($result)
{
$num = $db->num_rows($result);
$i = 0;
- $var=true;
-
- if ($num)
- {
- print '
';
- print '';
- print '| '.$langs->trans('OtherOptions').' | ';
- print "
\n";
- }
while ($i < $num)
{
$obj = $db->fetch_object($result);
$var=!$var;
-
- print '';
-
+ $list[$obj->name]=$obj->value;
$i++;
}
+}*/
- if ($num)
- {
- print "
\n";
- }
+$num=sizeof($list);
+if ($num)
+{
+ print '\n";
+}
+
+
$db->close();
diff --git a/htdocs/langs/fr_FR/compta.lang b/htdocs/langs/fr_FR/compta.lang
index 2648acd4e80..d99ba7c8af4 100644
--- a/htdocs/langs/fr_FR/compta.lang
+++ b/htdocs/langs/fr_FR/compta.lang
@@ -132,7 +132,7 @@ COMPTA_JOURNAL_BUY=Numéro comptable du Journal des Ventes
COMPTA_PRODUCT_BUY_ACCOUNT=Code comptable par défaut pour produits achetés (si non défini sur fiche produit)
COMPTA_PRODUCT_SOLD_ACCOUNT=Code comptable par défaut pour produits vendus (si non défini sur fiche produit)
COMPTA_SERVICE_BUY_ACCOUNT=Code comptable par défaut pour services achetés (si non défini sur fiche service)
-COMPTA_SERVICE_SOLD_ACCOUNT1=Code comptable par défaut pour services vendus (si non défini sur fiche service)
+COMPTA_SERVICE_SOLD_ACCOUNT=Code comptable par défaut pour services vendus (si non défini sur fiche service)
COMPTA_VAT_ACCOUNT=Code comptable par défaut pour TVA (si non défini dans dictionnaire "Taux de TVA")
COMPTA_ACCOUNT_CUSTOMER=Code comptable client par défaut (si non défini sur fiche tiers)
COMPTA_ACCOUNT_SUPPLIER=Code comptable fournisseur par défaut (si non défini sur fiche tiers)
\ No newline at end of file