From 3a68110e897de846bb4015aa83277645bb206de6 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 9 Jan 2005 20:53:26 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Si=20une=20soci=E9t=E9=20n'est=20ni=20cl?= =?UTF-8?q?iente=20ni=20prospect,=20on=20n'affiche=20pas=20bouton=20factur?= =?UTF-8?q?er=20client?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/fiche.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/compta/fiche.php b/htdocs/compta/fiche.php index 5f24f9fa142..3cc2ee19561 100644 --- a/htdocs/compta/fiche.php +++ b/htdocs/compta/fiche.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004 Laurent Destailleur + * Copyright (C) 2004-2005 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -21,8 +21,7 @@ * */ -/** - \file htdocs/compta/fiche.php +/** \file htdocs/compta/fiche.php \ingroup compta \brief Page de fiche compta \version $Revision$ @@ -342,7 +341,8 @@ if ($socid > 0) if ($user->societe_id == 0) { - if ($conf->facture->enabled && $user->rights->facture->creer) { + // Si société cliente ou prospect, on affiche bouton "Créer facture client" + if ($societe->client != 0 && $conf->facture->enabled && $user->rights->facture->creer) { $langs->load("bills"); print "id\">".$langs->trans("AddBill").""; }