noalyss Version-9
pdfbalance_simple.class.php
Go to the documentation of this file.
1<?php
2/*
3 * This file is part of NOALYSS.
4 *
5 * NOALYSS is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * NOALYSS is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with NOALYSS; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18*/
19
20// Copyright Author Dany De Bontridder danydb@noalyss.eu
21/**
22 * @file
23 * @brief PDF For the balance report
24 */
25/**
26 * @class PDFBalance_simple
27 * @brief PDF For the balance report
28 */
29
31{
32 /**
33 *@brief set_info(dossier,from poste,to poste, from periode, to periode)
34 *@param $p_from_poste start = poste
35 *@param $p_to_poste end = poste
36 *@param $p_from periode start
37 *@param $p_to periode end
38 */
39 function set_info($p_from_poste,$to_poste,$p_from,$p_to)
40 {
41 $this->dossier=sprintf(_('Balance simple %s'),dossier::name());
42 $this->from_poste=$p_from_poste;
43 $this->to_poste=$to_poste;
44 $this->from=$p_from;
45 $this->to=$p_to;
46 }
47 function Header()
48 {
49 parent::Header();
50 $this->SetFont('DejaVu','B',8);
51 $titre=sprintf(_("Balance simple poste %s %s date %s %s"),
52 $this->from_poste,
53 $this->to_poste,
54 $this->from,
55 $this->to);
56 $this->Cell(0,7,$titre,1,0,'C');
57
58 $this->Ln();
59 $this->SetFont('DejaVu','',6);
60
61 $this->Cell(110,7,_('Poste Comptable'),'B');
62 $this->Cell(20,7,_('Débit'),'B',0,'L');
63 $this->Cell(20,7,_('Crédit'),'B',0,'L');
64 $this->Cell(20,7,_('Solde'),'B',0,'L');
65 $this->Cell(20,7,_('D/C'),'B',0,'L');
66 $this->Ln();
67
68 }
69}
$anc_grandlivre from_poste
$anc_grandlivre to
$anc_grandlivre to_poste
$anc_grandlivre from
$from_poste name
$to_poste
PDF For the balance report.
set_info($p_from_poste, $to_poste, $p_from, $p_to)
set_info(dossier,from poste,to poste, from periode, to periode)
API for creating PDF, unicode, based on tfpdf.
Definition: pdf.class.php:34