diff --git a/htdocs/fourn/fiche.php b/htdocs/fourn/fiche.php index 88e0b713ea7..431b214b6a2 100644 --- a/htdocs/fourn/fiche.php +++ b/htdocs/fourn/fiche.php @@ -23,10 +23,10 @@ */ /** - \file htdocs/fourn/fiche.php - \ingroup fournisseur, facture - \brief Page de fiche fournisseur - \version $Revision$ + \file htdocs/fourn/fiche.php + \ingroup fournisseur, facture + \brief Page de fiche fournisseur + \version $Revision$ */ require("./pre.inc.php"); @@ -268,23 +268,23 @@ if ( $societe->fetch($socid) ) print ''; /* - * Boutons Actions + * + * Barre d'actions + * */ print '
'; - if ($conf->commande->enabled) { - $langs->load("orders"); - print ''.$langs->trans("AddOrder").''; - } - - if ($conf->facture->enabled) { - $langs->load("bills"); - print ''.$langs->trans("AddBill").''; - } + if ($user->fournisseur->commande->creer) + { + $langs->load("orders"); + print ''.$langs->trans("AddOrder").''; + } + + $langs->load("bills"); + print ''.$langs->trans("AddBill").''; print '
'; - /* * @@ -304,6 +304,7 @@ if ( $societe->fetch($socid) ) $sql .= " FROM ".MAIN_DB_PREFIX."socpeople as p WHERE p.fk_soc = $societe->id ORDER by p.datec"; $result = $db->query($sql); $i = 0 ; $num = $db->num_rows(); + while ($i < $num) { $obj = $db->fetch_object();