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 '| '.$langs->trans("Ref").' | ';
+ print ' |
| '.$langs->trans("Ref").' | ';
print $facture->ref;
print " |
";
@@ -242,8 +242,7 @@ if ($id > 0)
$facture->fetch_client();
print "| ".$langs->trans("Company")." | ";
- print '';
- print ''.$facture->client->nom.' |
';
+ print ''.$facture->client->getNomUrl(1,'compta').' | ';
print "
";
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 '| '.$langs->trans('Ref').' | '.$fac->ref.' |
';
+ print '| '.$langs->trans('Ref').' | '.$fac->ref.' |
';
// Société
print '| '.$langs->trans("Company").' | ';
- print '';
- print ''.$soc->nom.' | ';
+ print ''.$soc->getNomUrl(1,'compta').' | ';
// Note publique
print '
| '.$langs->trans("NotePublic").' : | ';