38 parent::__construct($p_cn,
'P',
'mm',
'A4',
$p_jrn,$p_from,$p_to,
'all');
39 $this->jrn_type=
$p_jrn->get_type();
48 $this->rap_amount=
$amount[
'amount'];
53 $this->SetFont(
'DejaVu',
'B', 12);
55 $this->Cell(0,10,$this->dossier,
'B', 0,
'C');
57 $this->SetFont(
'DejaVu',
'B', 7);
59 $this->Cell(40,6,_(
'report'),0,0,
'R');
60 $this->Cell(40,6,
nbm($this->rap_amount),0,0,
'R');
62 $this->SetFont(
'DejaVu',
'B', 7);
63 $this->Cell(15,6,_(
'Piece'));
64 $this->Cell(10,6,_(
'Date'));
65 $this->Cell(10,6,_(
'Interne'));
66 $this->Cell(40,6,_(
'Dest/Orig'));
67 $this->Cell(60,6,_(
'Commentaire'));
68 $this->Cell(20,6,_(
'Devise'),0,0,
'R');
69 $this->Cell(20,6,_(
'Montant'),0,0,
'R');
75 $this->SetFont(
'DejaVu',
'B', 7);
77 $this->Cell(40,6,_(
'Total page'),0,0,
'R');
78 $this->Cell(40,6,
nbm($this->tp_amount),0,0,
'R');
80 $this->rap_amount=bcadd($this->rap_amount,$this->tp_amount);
81 $this->Cell(40,6,_(
'Total à reporter'),0,0,
'R');
82 $this->Cell(40,6,
nbm($this->rap_amount),0,0,
'R');
87 $this->SetFont(
'Arial',
'I', 8);
89 $this->Cell(0,8,
'Date '.$this->date.
" - Page ".$this->PageNo().
'/{nb}',0,0,
'C');
92 $this->Cell(0,8,
'Created by NOALYSS, online on https://www.noalyss.eu',0,0,
'C',
false,
'https://www.noalyss.eu');
103 $this->SetFont(
'DejaVu',
'', 6);
104 if ( $a_jrn ==
null )
return;
108 $prepare->prepare_currency();
110 for (
$i=0;
$i<count($a_jrn);
$i++)
121 $amount=$this->
cn->get_value(
'select qf_amount from quant_fin where jr_id=$1',array(
$row[
'id']));
122 $ret_amount_cur=$this->
cn->execute(
"amount_cur",array(
$row[
'id']));
124 if ( $this->
cn->count($ret_amount_cur) == 1) {
127 $this->
write_cell(20,5,sprintf(
'%s %s',
nbm($amount_cur),
$row[
'cr_code_iso']),0,0,
'R');
134 $this->tp_amount=bcadd($this->tp_amount,
$amount);
nbm($p_number, $p_dec=2)
format the number with a sep.
static fetch_result($ret, $p_row=0, $p_col=0)
wrapper for the function pg_fetch_all
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='')
contains prepared query used in different classes of the application
print a listing of financial
export()
print the pdf for a financial ledger
__construct(Database $p_cn, Acc_Ledger $p_jrn, $p_from, $p_to)
Parent class for the print_ledger class.