From 1cf5e23bd059f0ec6c91da7c246718790f755413 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 28 Aug 2008 00:53:05 +0000 Subject: [PATCH] Add patch from patrick raguin to add the pdf unpayed concatenation feature. --- htdocs/compta/facture/retardspaiement.php | 28 +++++++++++------------ 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/htdocs/compta/facture/retardspaiement.php b/htdocs/compta/facture/retardspaiement.php index 5e789805f9a..362f2f98d0c 100644 --- a/htdocs/compta/facture/retardspaiement.php +++ b/htdocs/compta/facture/retardspaiement.php @@ -1,7 +1,5 @@ - * Copyright (C) 2004 Éric Seigne - * Copyright (C) 2004-2007 Laurent Destailleur +/* Copyright (C) 2008 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,14 +14,12 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * $Id$ */ /** \file htdocs/compta/facture/retardspaiement.php \ingroup facture - \brief Page de liste des factures clients impayées + \brief Page generation PDF factures clients impayées \version $Revision$ */ @@ -42,6 +38,10 @@ if ($user->societe_id) $socid=$user->societe_id; $result = restrictedArea($user, 'facture',$facid,''); +/* + * View + */ + llxHeader('',$langs->trans("BillsLate")); $html = new Form($db); @@ -103,10 +103,10 @@ if ($user->rights->facture->lire) } // vérifie que le chemin d'accès est bien accessible - if(!is_dir(DOL_DATA_ROOT . '/facture/impayes')) mkdir(DOL_DATA_ROOT . '/facture/impayes') ; + create_exdir($conf->facture->dir_output . '/impayes'); // enregistre le fichier pdf concaténé - $pdf->Output( DOL_DATA_ROOT . '/facture/impayes/impayes '.dolibarr_date('Y-m-d H:i:s',time()).'.pdf'); + $pdf->Output($conf->facture->dir_output . '/impayes/impayes'.dolibarr_date('YmdHis',time()).'.pdf'); } else { print '
'.$langs->trans('UnpayedNotChecked').'
' ; @@ -296,7 +296,7 @@ if ($user->rights->facture->lire) } print ''; - print "".$langs->trans("Total").": "; + print "".$langs->trans("Total").": "; print "".price($total_ht).""; print "".price($total_ttc).""; print "".price($total_payed).""; @@ -322,9 +322,9 @@ if ($user->rights->facture->lire) print '
' ; print_titre($langs->trans("Documents")); - print ''; + print '
'; print '' ; - print '' ; + print '' ; print '' ; // Pour chaque fichier on affiche une ligne foreach($file_list as $file){ @@ -334,11 +334,11 @@ if ($user->rights->facture->lire) // Nom du fichier print '' ; // Taille - print '' ; + print '' ; // Date - print '' ; + print '' ; // Suppression - print '' ; + print '' ; print '' ; }
'.$langs->trans("File").''.$langs->trans("Size").''.$langs->trans("Date").''.$langs->trans("File").''.$langs->trans("Size").''.$langs->trans("Date").'
'.img_pdf($file["name"],2)." ".$file["name"].''.filesize($filepath). ' bytes'.filesize($filepath). ' bytes'.dolibarr_print_date(filemtime($filepath),'dayhour').''.dolibarr_print_date(filemtime($filepath),'dayhour').''.img_delete().''.img_delete().'