diff --git a/htdocs/telephonie/ligne/remises.php b/htdocs/telephonie/ligne/remises.php
new file mode 100644
index 00000000000..77581df9475
--- /dev/null
+++ b/htdocs/telephonie/ligne/remises.php
@@ -0,0 +1,154 @@
+
+ *
+ * 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
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * $Id$
+ * $Source$
+ *
+ */
+
+require("./pre.inc.php");
+
+$mesg = '';
+
+llxHeader("","","Historique Remises");
+
+if ($cancel == $langs->trans("Cancel"))
+{
+ $action = '';
+}
+/*
+ * Affichage
+ *
+ */
+
+if ($_GET["id"])
+{
+
+ $ligne = new LigneTel($db);
+
+ $result = $ligne->fetch_by_id($_GET["id"]);
+}
+
+if ( $result )
+{
+ if ($_GET["action"] <> 'edit' && $_GET["action"] <> 're-edit')
+ {
+
+ $h=0;
+ $head[$h][0] = DOL_URL_ROOT."/telephonie/ligne/fiche.php?id=".$ligne->id;
+ $head[$h][1] = $langs->trans("Ligne");
+ $h++;
+
+ $head[$h][0] = DOL_URL_ROOT."/telephonie/ligne/remises.php?id=".$ligne->id;
+ $head[$h][1] = $langs->trans('Remises');
+ $hselected=$h;
+ $h++;
+
+
+
+ dolibarr_fiche_head($head, $hselected, 'Ligne : '.$ligne->numero);
+
+ print_fiche_titre('Fiche Ligne', $mesg);
+
+ print '
';
+
+ print '| Numéro | '.dolibarr_print_phone($ligne->numero).' |
';
+
+ $client = new Societe($db, $ligne->client_id);
+ $client->fetch($ligne->client_id);
+
+ $client_comm = new Societe($db, $ligne->client_comm_id);
+ $client_comm->fetch($ligne->client_comm_id);
+
+ print '| Client | ';
+ print '';
+ print $client_comm->nom.' |
';
+
+ print '| Statut actuel | ';
+ print ' ';
+ print $ligne->statuts[$ligne->statut];
+ print ' |
';
+
+ if ($ligne->user_creat)
+ {
+ print '| Créé par | ';
+
+ $cuser = new User($db, $ligne->user_creat);
+ $cuser->fetch();
+
+ print $cuser->fullname;
+ print ' |
';
+ }
+ if ($ligne->user_commande)
+ {
+ print '| Commandé par | ';
+
+ $couser = new User($db, $ligne->user_commande);
+ $couser->fetch();
+
+ print $couser->fullname;
+ print ' |
';
+ }
+
+ print '
';
+ print '';
+
+ print '';
+ print '| Date | ';
+ print 'Remise | ';
+ print 'Utilisateur | ';
+ print '
';
+
+ /* historique */
+
+ $sql = "SELECT ".$db->pdate("r.tms").", r.remise, r.fk_user, r.comment, u.name, u.firstname";
+ $sql .= " FROM ".MAIN_DB_PREFIX."telephonie_societe_ligne_remise as r";
+ $sql .= ",".MAIN_DB_PREFIX."user as u";
+ $sql .= " WHERE u.rowid = r.fk_user AND r.fk_ligne = ".$ligne->id;
+ $sql .= " ORDER BY r.tms DESC ";
+ if ( $db->query( $sql) )
+ {
+ $num = $db->num_rows();
+ if ( $num > 0 )
+ {
+ $i = 0;
+ while ($i < $num)
+ {
+ $row = $db->fetch_row($i);
+
+ print '| '.strftime("%a %d %B %Y %H:%M:%S",$row[0]).' | ';
+
+ print ''.$row[1].' % | ';
+ print ''.$row[5] . " " . $row[4] . " |
";
+ $i++;
+ }
+ }
+ $db->free();
+ }
+ else
+ {
+ print $sql;
+ }
+
+ print "
";
+ }
+}
+
+$db->close();
+
+llxFooter("Dernière modification $Date$ révision $Revision$");
+?>