From 0dff6f1e8012ad544c228be0e1ef4a976f915cab Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@users.sourceforge.net>
Date: Wed, 1 Jun 2011 22:58:20 +0000
Subject: [PATCH] Uniformize code

---
 htdocs/compta/deplacement/fiche.php | 2 +-
 htdocs/compta/deplacement/note.php  | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/htdocs/compta/deplacement/fiche.php b/htdocs/compta/deplacement/fiche.php
index 21657ec6d3d..27d813d531c 100644
--- a/htdocs/compta/deplacement/fiche.php
+++ b/htdocs/compta/deplacement/fiche.php
@@ -323,7 +323,7 @@ else
 				// Ref
 				print "<tr>";
 				print '<td width="20%">'.$langs->trans("Ref").'</td><td>';
-				print $deplacement->ref;
+                print $html->showrefnav($deplacement,'id','',1,'rowid','ref','');
 				print '</td></tr>';
 
 				// Type
diff --git a/htdocs/compta/deplacement/note.php b/htdocs/compta/deplacement/note.php
index c197b0181c3..3f1a2045b69 100644
--- a/htdocs/compta/deplacement/note.php
+++ b/htdocs/compta/deplacement/note.php
@@ -1,6 +1,6 @@
 <?php
 /* Copyright (C) 2004      Rodolphe Quiedeville <rodolphe@quiedeville.org>
- * Copyright (C) 2004-2010 Laurent Destailleur  <eldy@users.sourceforge.net>
+ * Copyright (C) 2004-2011 Laurent Destailleur  <eldy@users.sourceforge.net>
  *
  * 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
@@ -148,7 +148,7 @@ if ($id > 0 || ! empty($ref))
 	print '</td></tr>';
 
 	// Note publique
-    print '<tr><td valign="top">'.$langs->trans("NotePublic").' :</td>';
+    print '<tr><td valign="top">'.$langs->trans("NotePublic").'</td>';
 	print '<td valign="top" colspan="3">';
     if ($_GET["action"] == 'edit')
     {
@@ -168,7 +168,7 @@ if ($id > 0 || ! empty($ref))
 	// Note privee
 	if (! $user->societe_id)
 	{
-	    print '<tr><td valign="top">'.$langs->trans("NotePrivate").' :</td>';
+	    print '<tr><td valign="top">'.$langs->trans("NotePrivate").'</td>';
 		print '<td valign="top" colspan="3">';
 	    if ($_GET["action"] == 'edit')
 	    {
-- 
GitLab