diff --git a/htdocs/telephonie/facturation/facture.php b/htdocs/telephonie/facturation/facture.php index bf3a008e23b..66759dbdbc4 100644 --- a/htdocs/telephonie/facturation/facture.php +++ b/htdocs/telephonie/facturation/facture.php @@ -21,22 +21,6 @@ */ require("./pre.inc.php"); -$dir = $conf->telephonie->dir_output."/cdr/atraiter/" ; - -$handle=opendir($dir); - -$files = array(); - -$var=true; -while (($file = readdir($handle))!==false) -{ - if (is_file($dir.'/'.$file)) - array_push($files, $file); -} -closedir($handle); - - - if (!$user->rights->telephonie->facture->lire) accessforbidden(); $page = $_GET["page"]; @@ -78,23 +62,23 @@ $pagenext = $page + 1; * */ -print_barre_liste("CDR a traiter", $page, "cdr.php", "", $sortfield, $sortorder, '', $num); +print_barre_liste("Factures telephonie", $page, "facture.php", "", $sortfield, $sortorder, '', $num); print ''; print ''; print ''; -print ''; +print ''; print "\n"; print ''; -print ''; +print ''; print ''; -print ''; +print ''; print ''; $var=True; -$sql = "SELECT fk_contrat,ligne,date,cout_vente"; +$sql = "SELECT fk_contrat,ligne,date,cout_vente,fourn_montant"; $sql .= " FROM ".MAIN_DB_PREFIX."telephonie_facture"; $sql .= " WHERE 1=1"; if ($_GET["search_ligne"]) @@ -115,6 +99,7 @@ while ($obj = $db->fetch_object($resql)) print '\n"; print '\n"; print '\n"; + print '\n"; }
LigneDateMontant HTMontant HTMontant Fournisseur
   '.$obj->ligne."'.$obj->date."'.price($obj->cout_vente)."'.price($obj->fourn_montant)."