From 54ed2d2c77cb10f09afe27452ee2abd5a4a59f0d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 3 Jun 2006 16:04:32 +0000 Subject: [PATCH] =?UTF-8?q?Qual:=20Suppression=20des=20propri=E9t=E9s=20no?= =?UTF-8?q?m=5Furl=20au=20profit=20de=20la=20methode=20getNomUrl.=20Ce=20q?= =?UTF-8?q?ui=20permet=20de=20passer=20en=20parametre=20si=20on=20veut=20e?= =?UTF-8?q?n=20plus=20le=20picto=20ou=20non=20dans=20le=20lien?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/facture.php | 7 +++---- htdocs/compta/facture/apercu.php | 3 +-- htdocs/compta/facture/contact.php | 9 ++++----- htdocs/compta/facture/note.php | 5 ++--- 4 files changed, 10 insertions(+), 14 deletions(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index e43db825994..491a4e59075 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -742,7 +742,7 @@ if ($_GET['action'] == 'create') print ''; // Ligne info remises tiers - print ''.$langs->trans('Info').''; + print ''.$langs->trans('Discounts').''; if ($soc->remise_client) print $langs->trans("CompanyHasRelativeDiscount",$soc->remise_client); else print $langs->trans("CompanyHasNoRelativeDiscount"); $absolute_discount=$soc->getCurrentDiscount(); @@ -1337,12 +1337,11 @@ else // Société print ''.$langs->trans('Company').''; - print ''; - print ''.$soc->nom.''; + print ''.$soc->getNomUrl(1,'compta').''; print ''; // Ligne info remises tiers - print ''.$langs->trans('Info').''; + print ''.$langs->trans('Discounts').''; if ($soc->remise_client) print $langs->trans("CompanyHasRelativeDiscount",$soc->remise_client); else print $langs->trans("CompanyHasNoRelativeDiscount"); $absolute_discount=$soc->getCurrentDiscount(); diff --git a/htdocs/compta/facture/apercu.php b/htdocs/compta/facture/apercu.php index 4654bc69371..13111f41971 100644 --- a/htdocs/compta/facture/apercu.php +++ b/htdocs/compta/facture/apercu.php @@ -89,8 +89,7 @@ if ($_GET["facid"] > 0) // Societe print ''.$langs->trans("Company").''; - print ''; - print ''.$soc->nom.''; + print ''.$soc->getNomUrl(1,'compta').''; print ''; // Dates diff --git a/htdocs/compta/facture/contact.php b/htdocs/compta/facture/contact.php index a5b7d9f36ab..68bfda4fcce 100644 --- a/htdocs/compta/facture/contact.php +++ b/htdocs/compta/facture/contact.php @@ -1,6 +1,6 @@ - * Copyright (C) 2005 Destailleur Laurent +/* Copyright (C) 2005 Patrick Rouillon + * Copyright (C) 2005-2006 Destailleur Laurent * * 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 @@ -233,7 +233,7 @@ if ($id > 0) print ''; // Reference du facture - print '"; @@ -242,8 +242,7 @@ if ($id > 0) $facture->fetch_client(); print ""; - print ''; + print ''; print "
'.$langs->trans("Ref").''; + print '
'.$langs->trans("Ref").''; print $facture->ref; print "
".$langs->trans("Company")."'; - print ''.$facture->client->nom.'
'.$facture->client->getNomUrl(1,'compta').'
"; print ''; diff --git a/htdocs/compta/facture/note.php b/htdocs/compta/facture/note.php index 50b367c1358..265746e507b 100644 --- a/htdocs/compta/facture/note.php +++ b/htdocs/compta/facture/note.php @@ -113,12 +113,11 @@ if ($_GET["facid"]) print ''; // Reference - print ''; + print ''; // Société print ''; - print ''; + print ''; // Note publique print '';
'.$langs->trans('Ref').''.$fac->ref.'
'.$langs->trans('Ref').''.$fac->ref.'
'.$langs->trans("Company").''; - print ''.$soc->nom.''.$soc->getNomUrl(1,'compta').'
'.$langs->trans("NotePublic").' :