34 parent::__construct($p_cn,
'P',
'mm',
'A4',
$p_jrn,$p_from,$p_to,
"all");
39 $this->SetFont(
'DejaVu',
'B', 12);
41 $this->Cell(0,10,$this->dossier,
'B', 0,
'C');
44 $this->SetFont(
'DejaVu',
'B', 7);
45 $this->Cell(10,6,_(
'Date'));
46 $this->Cell(30,6,_(
'Piece'));
47 $this->Cell(20,6,_(
'Interne'));
48 $this->Cell(25,6,_(
'Tiers'));
49 $this->Cell(60,6,_(
'Commentaire'));
50 $this->Cell(20,6,_(
'Devise'),0,0,
'R');
51 $this->Cell(15,6,_(
'Montant'),0,0,
'R');
60 $this->SetFont(
'Arial',
'I', 8);
62 $this->Cell(0,6,
'Date '.$this->date.
" - Page ".$this->PageNo().
'/{nb}',0,0,
'C');
65 $this->Cell(0,6,
'Created by NOALYSS, online on https://www.noalyss.eu',0,0,
'C',
false,
'https://www.noalyss.eu');
78 $this->SetFont(
'DejaVu',
'', 6);
79 if ( $a_jrn ==
null )
return;
81 for (
$i=0;
$i<count($a_jrn);
$i++)
88 $type=$this->
cn->get_value(
"select jrn_def_type from jrn_def where jrn_def_id=$1",array($a_jrn[
$i][
'jr_def_id']));
91 $positive=
$row[
'montant'];
93 if (
$type ==
'FIN' ) {
94 $positive = $this->
cn->get_value(
"select qf_amount from quant_fin ".
95 " where jr_id=".
$row[
'jr_id']);
97 if (
$row[
'currency_id'] != 0 ) {
smaller_date($p_date)
shrink the date, make a date shorter for the printing
nbm($p_number, $p_dec=2)
format the number with a sep.
contains the class for connecting to Noalyss
line_new($p_step=null)
Print all the cell stored and call Ln (new line)
LongLine($w, $h, $txt, $border=0, $align='', $fill=false)
write_cell($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=false, $link='')
print a listing of Miscelleaneous operation
__construct(Database $p_cn, $p_jrn, $p_from, $p_to)
Parent class for the print_ledger class.