40 parent::__construct($p_cn,
'L',
'mm',
'A4',
$ledger,$p_from,$p_to,
'all');
52 $this->SetFont(
'DejaVu',
'B', 12);
54 $this->Cell(0,10,$this->dossier,
'B', 0,
'C');
63 $this->SetFont(
'Arial',
'I', 8);
65 $this->Cell(0,8,
'Date '.$this->date.
" - Page ".$this->PageNo().
'/{nb}',0,0,
'L');
67 $this->Cell(0,8,
'Created by NOALYSS, online on https://www.noalyss.eu',0,0,
'R',
false,
'https://www.noalyss.eu');
81 $this->SetFont(
'DejaVu',
'BI',7);
82 $this->
write_cell(215,7,
'report Débit',0,0,
'R');
85 $this->
write_cell(215,7,
'report Crédit',0,0,
'R');
92 $this->SetFont(
'DejaVuCond',
'B',7);
103 $aEntry=$this->
cn->get_array(
"select j_id,j_poste,j_qcode,j_montant,j_debit, j_text,".
104 " case when j_text='' or j_text is null then pcm_lib else j_text end as desc,".
106 " from jrnx join tmp_pcmn on (j_poste=pcm_val) where j_grpt = $1".
107 " order by j_debit desc,j_id",
108 array(
$row[
'jr_grpt_id']));
109 for ($j=0;$j<count($aEntry);$j++)
111 $this->SetFont(
'DejaVuCond',
'',7);
114 $this->
write_cell(32,6,$entry[
'j_qcode'],0,0,
'R');
115 $this->
write_cell(23,6,$entry[
'j_poste'],0,0,
'R');
118 if ( $entry[
'j_text'] ==
'' && $entry[
'j_qcode'] !=
'')
120 $f_id=$this->
cn->get_value(
'select f_id from vw_poste_qcode where j_qcode=$1',array($entry[
'j_qcode']));
122 $name=$this->
cn->get_value(
'select ad_value from fiche_detail where f_id=$1 and ad_id=1',
125 $name=$entry[
'pcm_lib'];
128 $name=$entry[
'desc'];
132 $str_amount=
nbm($entry[
'j_montant']);
133 if ( $entry[
'j_debit']==
't')
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='')
this class extends PDF and let you export the detailled printing of any ledgers
setDossierInfo($dossier="n/a")
__construct(Database $p_cn, Acc_Ledger $ledger, $p_from, $p_to)
Parent class for the print_ledger class.