noalyss
Version-9
include
class
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
30
class
PDFBalance_simple
extends
PDF
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
}
from_poste
$anc_grandlivre from_poste
Definition:
ajax_history_anc_account.php:48
to
$anc_grandlivre to
Definition:
ajax_history_anc_account.php:62
to_poste
$anc_grandlivre to_poste
Definition:
ajax_history_anc_account.php:49
from
$anc_grandlivre from
Definition:
ajax_history_anc_account.php:61
name
$from_poste name
Definition:
balance.inc.php:163
$to_poste
$to_poste
Definition:
balance.inc.php:171
PDFBalance_simple
PDF For the balance report.
Definition:
pdfbalance_simple.class.php:31
PDFBalance_simple\set_info
set_info($p_from_poste, $to_poste, $p_from, $p_to)
set_info(dossier,from poste,to poste, from periode, to periode)
Definition:
pdfbalance_simple.class.php:39
PDFBalance_simple\Header
Header()
Definition:
pdfbalance_simple.class.php:47
PDF
API for creating PDF, unicode, based on tfpdf.
Definition:
pdf.class.php:34