|
noalyss
Version-6.7.2
|
Public Member Functions | |
| __construct ($p_cn, Acc_Ledger $p_jrn) | |
| export () | |
| print the pdf for a financial ledger | |
| Footer () | |
| Header () | |
Private Attributes | |
| $rap_amount | |
| $tp_amount | |
Definition at line 26 of file class_print_ledger_fin.php.
| Print_Ledger_Financial::__construct | ( | $ | p_cn, |
| Acc_Ledger $ | p_jrn | ||
| ) |
Definition at line 31 of file class_print_ledger_fin.php.
References $_GET, $amount, $p_jrn, and Acc_Ledger\get_type().
print the pdf for a financial ledger
Definition at line 93 of file class_print_ledger_fin.php.
References $_GET, $amount, $name, $row, PDF\Cell(), cn, PDF\Ln(), PDF\LongLine(), and nbm().
{
$a_jrn=$this->ledger->get_operation($_GET['from_periode'],
$_GET['to_periode']);
$this->SetFont('DejaVu', '', 6);
if ( $a_jrn == null ) return;
bcscale(2);
for ( $i=0;$i<count($a_jrn);$i++)
{
$row=$a_jrn[$i];
$this->LongLine(15,5,$row['pj']);
$this->Cell(10,5,$row['date_fmt']);
$this->Cell(15,5,$row['internal']);
$name=$this->ledger->get_tiers($this->jrn_type,$row['id']);
$this->LongLine(40,5,$name,0,'L');
$this->LongLine(80,5,$row['comment'],0,'L');
$amount=$this->cn->get_value('select qf_amount from quant_fin where jr_id=$1',array( $row['id']));
$this->Cell(20,5,sprintf('%s',nbm($amount)),0,0,'R');
$this->Ln(5);
$this->tp_amount=bcadd($this->tp_amount,$amount);
}
}
Reimplemented from PDF.
Definition at line 68 of file class_print_ledger_fin.php.
References PDF\Cell(), PDF\Ln(), and nbm().
{
$this->SetFont('DejaVu', 'B', 7);
$this->Cell(40,6,_('Total page'),0,0,'R');
$this->Cell(40,6,nbm($this->tp_amount),0,0,'R');
bcscale(2);
$this->rap_amount=bcadd($this->rap_amount,$this->tp_amount);
$this->Cell(40,6,_('Total à reporter'),0,0,'R');
$this->Cell(40,6,nbm($this->rap_amount),0,0,'R');
$this->tp_amount=0;
//Position at 2 cm from bottom
$this->SetY(-20);
//Arial italic 8
$this->SetFont('Arial', 'I', 8);
//Page number
$this->Cell(0,8,'Date '.$this->date." - Page ".$this->PageNo().'/{nb}',0,0,'C');
$this->Ln(3);
// Created by NOALYSS
$this->Cell(0,8,'Created by NOALYSS, online on http://www.aevalys.eu',0,0,'C',false,'http://www.aevalys.eu');
}
Reimplemented from PDF.
Definition at line 46 of file class_print_ledger_fin.php.
References PDF\Cell(), PDF\Ln(), and nbm().
{
//Arial bold 12
$this->SetFont('DejaVu', 'B', 12);
//Title
$this->Cell(0,10,$this->dossier, 'B', 0, 'C');
//Line break
$this->SetFont('DejaVu', 'B', 7);
$this->Ln(10);
$this->Cell(40,6,_('report'),0,0,'R');
$this->Cell(40,6,nbm($this->rap_amount),0,0,'R');
$this->Ln(6);
$this->SetFont('DejaVu', 'B', 7);
$this->Cell(15,6,'Piece');
$this->Cell(10,6,'Date');
$this->Cell(15,6,'Interne');
$this->Cell(40,6,'Dest/Orig');
$this->Cell(80,6,'Commentaire');
$this->Cell(20,6,'Montant');
$this->Ln(6);
}
Print_Ledger_Financial::$rap_amount [private] |
Definition at line 28 of file class_print_ledger_fin.php.
Print_Ledger_Financial::$tp_amount [private] |
Definition at line 29 of file class_print_ledger_fin.php.