From 86de808319c463edfd2cdaa4436db4ade7025834 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 8 Jan 2005 12:00:57 +0000 Subject: [PATCH] Fix: Lien invalide --- htdocs/fourn/fiche.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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 '
';