diff --git a/htdocs/fourn/fiche.php b/htdocs/fourn/fiche.php index 3b64841eb16..22984332d40 100644 --- a/htdocs/fourn/fiche.php +++ b/htdocs/fourn/fiche.php @@ -265,8 +265,17 @@ if ( $societe->fetch($socid) ) */ print '
'; - print ''.$langs->trans("CreateOrder").''; - print ''.$langs->trans("CreateBill").''; + + if ($conf->commande->enabled) { + $langs->load("orders"); + print ''.$langs->trans("AddOrder").''; + } + + if ($conf->facture->enabled) { + $langs->load("bills"); + print ''.$langs->trans("AddBill").''; + } + print '
';