diff --git a/htdocs/telephonie/fournisseur/fiche.php b/htdocs/telephonie/fournisseur/fiche.php index 6b08db901c3..d068b07f210 100644 --- a/htdocs/telephonie/fournisseur/fiche.php +++ b/htdocs/telephonie/fournisseur/fiche.php @@ -262,8 +262,20 @@ if ($_GET["id"] > 0) print 'Grille de tarif'; print ''.$ta->liste_name[$fourn->grille].''; print 'Grille de tarif'; - - print '
'; + print '
'; + print 'Format de CDR
'; + + if (strlen($fourn->cdrformat)) + { + if (@require_once(DOL_DOCUMENT_ROOT."/telephonie/fournisseur/cdrformat/cdrformat.".$fourn->cdrformat.".class.php")) + { + $format = "CdrFormat".ucfirst($fourn->cdrformat); + $cdrformat = new $format(); + print '
'.$cdrformat->ShowSample().'
'; + } + } + print ''; + } } }