From f54e2490749f361bce507772f70332b376ee9402 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 23 Mar 2005 10:42:12 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20tableau=20avec=20le=20nombre=20de=20lig?= =?UTF-8?q?nes=20concern=E9es=20par=20le=20prochain=20export?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/export/index.php | 54 +++++++++++++++++++++++++++++----- 1 file changed, 46 insertions(+), 8 deletions(-) diff --git a/htdocs/compta/export/index.php b/htdocs/compta/export/index.php index cd4c13bd766..abf2e59f2ab 100644 --- a/htdocs/compta/export/index.php +++ b/htdocs/compta/export/index.php @@ -30,11 +30,7 @@ require("./pre.inc.php"); -llxHeader(); - -print "Export Comptable"; - -print '
Export
'; +require("./ComptaJournalPaiement.class.php"); if ($_GET["action"] == 'export') { @@ -44,8 +40,21 @@ if ($_GET["action"] == 'export') $exc->Export(); print $exc->error_message; + + $jp= new ComptaJournalPaiement($db); + $jp->GeneratePdf(); + } +llxHeader(); + +print_titre("Export Comptable"); + +print ''; + +print ''; } } @@ -75,6 +81,38 @@ while (($file = readdir($handle))!==false) print "
'; + +print '
Export
'; $dir = DOL_DATA_ROOT."/compta/export/"; @@ -65,9 +74,6 @@ while (($file = readdir($handle))!==false) { print '
'.$file.''; - - - print '
"; +print ''; + +$sql = "SELECT count(*) FROM ".MAIN_DB_PREFIX."facturedet"; +$sql .= " WHERE fk_export_compta = 0"; +$result = $db->query($sql); +if ($result) +{ + $row = $db->fetch_row($result); + $nbfac = $row[0]; + + $db->free($result); +} + +$sql = "SELECT count(*) FROM ".MAIN_DB_PREFIX."paiement"; +$sql .= " WHERE fk_export_compta = 0"; + +$result = $db->query($sql); +if ($result) +{ + $row = $db->fetch_row($result); + $nbp = $row[0]; + + $db->free($result); +} + +print ''; +print ''; +print ''; +print ''; +print "
TypeNb
Factures'.$nbfac.'
Paiements'.$nbp.'
\n"; + +print ''; llxFooter("Dernière modification $Date$ révision $Revision$");