32 parent::__construct($p_cn,
'L',
'mm',
'A4',
$p_jrn,$p_from,$p_to,$p_filter_operation);
46 $this->SetFont(
'DejaVu',
'B', 12);
48 $this->Cell(0,10,$this->dossier,
'B', 0,
'C');
52 $this->SetFont(
'DejaVu',
'', 6);
53 $this->
write_cell(20, $high, _(
'Date'),0,0,
'L',
false);
54 $this->
write_cell(20, $high, _(
'Numéro interne'), 0,0,
'L',
false);
55 $this->
write_cell(50, $high, _(
'Code'),0,0,
'L',
false);
56 $this->
write_cell(80, $high, _(
'Libellé'),0,0,
'L',
false);
57 $this->
write_cell(20, $high, _(
'Tot HTVA'), 0, 0,
'R',
false,
'R',
false);
58 $this->
write_cell(20, $high, _(
'Tot TVA NP'), 0, 0,
'R',
false,
false);
59 $this->
write_cell(20, $high, _(
"Autre Tx"), 0, 0,
'R',
false);
60 $this->
write_cell(20, $high, _(
'Tot TVA'), 0, 0,
'R',
false);
61 $this->
write_cell(20, $high, _(
'TVAC'), 0, 0,
'R',
false);
72 $this->SetFont(
'Arial',
'I', 8);
73 $this->Cell(50,8,
' Journal '.$this->
get_ledger()->get_name(),0,0,
'C');
76 $this->Cell(30,8,
'Date '.$this->date.
" - Page ".$this->PageNo().
'/{nb}',0,0,
'L');
78 $this->Cell(0,8,
'Created by NOALYSS, online on https://www.noalyss.eu',0,0,
'R',
false,
'https://www.noalyss.eu');
101 die (__FILE__.
":".__LINE__.
'Journal invalide');
104 if ( $ret_detail ==
null )
return;
107 $prepared_query->prepare_reconcile_date();
110 $this->SetFont(
'DejaVu',
'', 6);
112 $this->SetFillColor(220,221,255);
118 if ($internal !=
$row[
'jr_internal'])
122 $this->
LongLine(20, $high,
$row[
'jr_date'],1,
'L',
true);
123 $this->
write_cell(20, $high,
$row[
'jr_pj_number'].
".".
$row[
'jr_internal'], 1, 0,
'L',
true);
124 $this->
LongLine(50, $high,
$row[
'quick_code'].
" ".
$row[
'tiers_name'],1,
'L',
true);
125 $this->
LongLine(80, $high,
$row[
'jr_comment'],1,
'L',
true);
134 $internal=
$row[
'jr_internal'];
143 $msg=( $ret_row[
'qcode_bank']!=
"")?
"[".$ret_row[
'qcode_bank'].
"]":$ret_row[
'jr_internal'];
145 sprintf(_(
"Paiement montant %s date %s methoded %s "), $ret_row[
'jr_montant'],
146 $ret_row[
'jr_date'],
$msg
151 if ( $this->show_col ==
true ) {
155 $this->
LongLine(30,$high,_(
'QuickCode'));
157 $this->
LongLine(70,$high,_(
'Libellé'));
158 $this->
write_cell(20,$high,_(
'Prix/Unit'),0,0,
'R');
159 $this->
write_cell(20,$high,_(
'Quant.'),0,0,
'R');
160 $this->
write_cell(20,$high,_(
'HTVA'),0,0,
'R');
161 $this->
write_cell(20,$high,_(
'TVA NP'),0,0,
'R');
164 $this->
write_cell(20,$high,_(
'TVAC'),0,0,
'R');
166 $this->show_col=
false;
172 $comment=(
$row[
'j_text']==
"")?
$row[
'item_name']:
$row[
'j_text'];
180 $sum=bcadd(
$row[
'price'],
$row[
'vat']);
noalyss_bcsub($p_first, $p_second, $p_decimal=4)
noalyss_bcadd($p_first, $p_second, $p_decimal=4)
nbm($p_number, $p_dec=2)
format the number with a sep.
Handle the ledger of purchase,.
Handle the ledger of sold,.
static fetch_array($ret, $p_indice=0, $p_mode=PGSQL_ASSOC)
wrapper for the function pg_fetch_array
static num_row($ret)
wrapper for the function pg_num_rows
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 detail of operation PURCHASE or SOLD plus the items There is no report of the different amounts...
Header()
write the header of each page
__construct(Database $p_cn, Acc_Ledger $p_jrn, $p_from, $p_to, $p_filter_operation)
setDossierInfo($dossier="n/a")
export()
export the ledger in PDF
Parent class for the print_ledger class.