Modif repertoire de stockage des documents générés

This commit is contained in:
Rodolphe Quiedeville 2006-12-23 15:11:13 +00:00
parent 0a72f4b204
commit c0c7aa7e3b
2 changed files with 178 additions and 181 deletions

View File

@ -1,5 +1,5 @@
<?PHP <?PHP
/* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2005-2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* *
* This program is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@ -31,11 +31,10 @@ class ComptaJournalPaiement {
} }
function GeneratePdf($user, $excid, $excref) function GeneratePdf($user, $dir, $excid, $excref)
{ {
$date = strftime("%Y%m",time()); $date = strftime("%Y%m",time());
$dir = DOL_DATA_ROOT."/compta/export/";
$file = $dir . "JournalPaiement".$excref . ".pdf"; $file = $dir . "JournalPaiement".$excref . ".pdf";
$grand_total_debit = 0; $grand_total_debit = 0;
@ -260,7 +259,6 @@ class ComptaJournalPaiement {
*/ */
Function _print_ligne($a, $b, $c, $d, $e, $f) Function _print_ligne($a, $b, $c, $d, $e, $f)
{ {
$this->pdf->cell(16,$this->hligne, strftime('%d%m%y',$a)); $this->pdf->cell(16,$this->hligne, strftime('%d%m%y',$a));
$this->pdf->cell(20,$this->hligne, $b); $this->pdf->cell(20,$this->hligne, $b);
$this->pdf->cell(20,$this->hligne, $c); $this->pdf->cell(20,$this->hligne, $c);

View File

@ -1,5 +1,5 @@
<?PHP <?PHP
/* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2005-2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* *
* This program is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@ -31,11 +31,10 @@ class ComptaJournalVente {
} }
function GeneratePdf($user, $excid, $excref) function GeneratePdf($user, $dir, $excid, $excref)
{ {
$date = strftime("%Y%m",time()); $date = strftime("%Y%m",time());
$dir = DOL_DATA_ROOT."/compta/export/";
$file = $dir . "JournalVente".$excref . ".pdf"; $file = $dir . "JournalVente".$excref . ".pdf";
if (file_exists($dir)) if (file_exists($dir))