diff --git a/htdocs/telephonie/contrat/services.php b/htdocs/telephonie/contrat/services.php index 3d48d0d7ed3..7d21808ed6f 100644 --- a/htdocs/telephonie/contrat/services.php +++ b/htdocs/telephonie/contrat/services.php @@ -185,17 +185,20 @@ if ($cancel == $langs->trans("Cancel")) print "
"; - /* Lignes */ + /* Services */ print ''; - $sql = "SELECT s.libelle, s.statut, cs.rowid as serid, s.montant, cs.montant as montant_fac"; - $sql .= ", cs.rowid"; + $sql = "SELECT s.libelle, s.statut"; + $sql .= " , cs.rowid as serid, s.montant, cs.montant as montant_fac"; + $sql .= " , ".$db->pdate("cs.date_creat") . " as date_creat"; + $sql .= " , u.name, u.firstname"; $sql .= " FROM ".MAIN_DB_PREFIX."telephonie_contrat_service as cs"; $sql .= " , ".MAIN_DB_PREFIX."telephonie_service as s"; + $sql .= " , ".MAIN_DB_PREFIX."user as u"; $sql .= " WHERE cs.fk_service = s.rowid"; - + $sql .= " AND cs.fk_user_creat = u.rowid"; $sql .= " AND cs.fk_contrat = ".$contrat->id; if ( $db->query( $sql) ) @@ -203,14 +206,15 @@ if ($cancel == $langs->trans("Cancel")) $numlignes = $db->num_rows(); if ( $numlignes > 0 ) { - $i = 0; - + $i = 0; $ligne = new LigneTel($db); print ''; print ''; print ''; - print "\n"; + print "\n"; + print ''; + print ''; while ($i < $numlignes) { @@ -230,6 +234,8 @@ if ($cancel == $langs->trans("Cancel")) print '"; + print ''; + print ''; print "\n"; $i++; } @@ -249,7 +255,6 @@ if ($cancel == $langs->trans("Cancel")) } - /* * Service *
ServiceMontant FacturéMontant du service 
 Ajouté parAjouté le
'; print img_delete(); print "'.$obj->firstname.' '.$obj->name.''.strftime("%d/%m/%y",$obj->date_creat).'