noalyss Version-10
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
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 var $dossier; /*!< $dossier (string) Title */
33 var $from_poste ; /*! $from_poste (text) lowest limit (alpha. order)*/
34 var $to_poste ; /*! $from_poste (text) highest limit (alpha. order)*/
35 var $from ; /*! $from(date dd.mm.yyyy) lowest date */
36 var $to; /*! $to (date dd.mm.yyyy) highest date */
37 /**
38 *@brief set_info(dossier,from poste,to poste, from periode, to periode)
39 *@param $p_from_poste start = poste
40 *@param $p_to_poste end = poste
41 *@param $p_from periode start
42 *@param $p_to periode end
43 */
44 function set_info($p_from_poste,$to_poste,$p_from,$p_to)
45 {
46 $this->dossier=sprintf(_('Balance simple %s'),dossier::name());
47 $this->from_poste=$p_from_poste;
48 $this->to_poste=$to_poste;
49 $this->from=$p_from;
50 $this->to=$p_to;
51 }
52 function Header()
53 {
54 parent::Header();
55 $this->SetFont('DejaVu','B',8);
56 $titre=sprintf(_("Balance simple poste %s %s date %s %s"),
57 $this->from_poste,
58 $this->to_poste,
59 $this->from,
60 $this->to);
61 $this->Cell(0,7,$titre,1,0,'C');
62
63 $this->Ln();
64 $this->SetFont('DejaVu','',6);
65
66 $this->Cell(110,7,_('Poste Comptable'),'B');
67 $this->Cell(20,7,_('Débit'),'B',0,'L');
68 $this->Cell(20,7,_('Crédit'),'B',0,'L');
69 $this->Cell(20,7,_('Solde'),'B',0,'L');
70 $this->Cell(20,7,_('D/C'),'B',0,'L');
71 $this->Ln();
72
73 }
74}
$anc_grandlivre from_poste
$anc_grandlivre to
$anc_grandlivre to_poste
$anc_grandlivre from
_("actif, passif,charge,...")
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