diff --git a/htdocs/compta/fiche.php b/htdocs/compta/fiche.php index 39ef74aac2a..322eb9f228f 100644 --- a/htdocs/compta/fiche.php +++ b/htdocs/compta/fiche.php @@ -154,26 +154,26 @@ if ($_GET["socid"] > 0) if ($societe->client==1) { $head[$h][0] = DOL_URL_ROOT.'/comm/fiche.php?socid='.$societe->id; - $head[$h][1] = 'Fiche client'; + $head[$h][1] = 'Client'; $h++; } if ($societe->client==2) { $head[$h][0] = DOL_URL_ROOT.'/comm/prospect/fiche.php?id='.$societe->id; - $head[$h][1] = 'Fiche prospect'; + $head[$h][1] = 'Prospect'; $h++; } if ($societe->fournisseur) { $head[$h][0] = DOL_URL_ROOT.'/fourn/fiche.php?socid='.$societe->id; - $head[$h][1] = 'Fiche fournisseur'; + $head[$h][1] = 'Fournisseur'; $h++; } if ($conf->compta->enabled) { $hselected=$h; $head[$h][0] = DOL_URL_ROOT.'/compta/fiche.php?socid='.$societe->id; - $head[$h][1] = 'Fiche compta'; + $head[$h][1] = 'Comptabilité'; $h++; } diff --git a/htdocs/compta/index.php b/htdocs/compta/index.php index 2c0a69588c7..d359cc31474 100644 --- a/htdocs/compta/index.php +++ b/htdocs/compta/index.php @@ -79,10 +79,11 @@ print ""; +if ($conf->facture->enabled) { /* * Factures brouillons */ - + $sql = "SELECT f.facnumber, f.rowid, s.nom, s.idp FROM ".MAIN_DB_PREFIX."facture as f, ".MAIN_DB_PREFIX."societe as s WHERE s.idp = f.fk_soc AND f.fk_statut = 0"; if ( $db->query($sql) ) @@ -114,6 +115,10 @@ else print $sql; } +} + +if ($conf->compta->enabled) { + /* * Charges a payer * @@ -154,6 +159,9 @@ if ($user->societe_id == 0) } } +} + + /* * Bookmark * @@ -192,10 +200,11 @@ if ( $db->query($sql) ) */ print '