diff --git a/htdocs/compta/fiche.php b/htdocs/compta/fiche.php index e8a94733e54..f0746cfd065 100644 --- a/htdocs/compta/fiche.php +++ b/htdocs/compta/fiche.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2009 Laurent Destailleur + * Copyright (C) 2004-2010 Laurent Destailleur * Copyright (C) 2005-2010 Regis Houssin * Copyright (C) 2010 Juanjo Menent * @@ -443,7 +443,7 @@ if ($socid > 0) if ($user->rights->facture->creer) { $langs->load("bills"); - if ($societe->client != 0) print ''.$langs->trans("AddBill").''; + if ($societe->client != 0) print ''.$langs->trans("AddBill").''; else print ''.$langs->trans("AddBill").''; } else @@ -455,15 +455,16 @@ if ($socid > 0) if ($conf->deplacement->enabled) { $langs->load("trips"); - print ''.$langs->trans("AddTrip").''; + print ''.$langs->trans("AddTrip").''; } } + // Add action if ($conf->agenda->enabled) { if ($user->rights->agenda->myactions->create) { - print ''.$langs->trans("AddAction").''; + print ''.$langs->trans("AddAction").''; } else { @@ -473,7 +474,7 @@ if ($socid > 0) if ($user->rights->societe->contact->creer) { - print "".$langs->trans("AddContact").""; + print "id."&action=create\">".$langs->trans("AddContact").""; } print '';