diff --git a/htdocs/telephonie/ligne/history.php b/htdocs/telephonie/ligne/history.php index feb12369305..ab53448602a 100644 --- a/htdocs/telephonie/ligne/history.php +++ b/htdocs/telephonie/ligne/history.php @@ -211,7 +211,7 @@ llxHeader("","","Historique Ligne"); print_titre("Retours Fournisseurs"); $sql = "SELECT "; $sql .= " cli,mode,situation,date_mise_service,date_resiliation,motif_resiliation,commentaire,fichier, traite "; - + $sql .= ",".$db->pdate("date_traitement")." as dt, fk_fournisseur"; $sql .= " FROM ".MAIN_DB_PREFIX."telephonie_commande_retour"; $sql .= " WHERE cli = ".$ligne->numero; $sql .= " ORDER BY rowid DESC " . $db->plimit($conf->liste_limit+1, $offset); @@ -221,7 +221,7 @@ llxHeader("","","Historique Ligne"); { print '
| Mode | Resultat | '; - print 'Date MeS | Résil | Commentaire | Fichier | '; + print 'Date MeS | Résil | Commentaire | D.T. / Fichier | '; print "
| '.$obj->mode." | \n"; + print ''.$obj->fk_fournisseur." ".$obj->mode." | \n"; print ''.$obj->situation." | \n"; print ''.$obj->date_mise_service." | \n"; print ''.$obj->date_resiliation." | \n"; print ''.$obj->commentaire." | \n"; - print ''.$obj->fichier." | \n"; + if ($obj->fichier) + { + print ''.$obj->fichier." | \n"; + } + else + { + print ''.strftime("%d/%m/%y %H:%M",$obj->dt)." | \n"; + } print "