35 parent::__construct($p_cn,
'L',
'mm',
'A4',
$p_jrn,$p_from,$p_to,$p_filter_operation);
41 $this->dossier = dossier::name().
" ".
$dossier;
49 $this->SetFont(
'DejaVu',
'B', 12);
51 $this->Cell(0,10,$this->dossier,
'B', 0,
'C');
55 $this->SetFont(
'DejaVu',
'', 6);
56 $this->
write_cell(20, $high,
_(
'Date'),0,0,
'L',
false);
57 $this->
write_cell(20, $high,
_(
'Numéro interne'), 0,0,
'L',
false);
58 $this->
write_cell(50, $high,
_(
'Code'),0,0,
'L',
false);
59 $this->
write_cell(80, $high,
_(
'Libellé'),0,0,
'L',
false);
60 $this->
write_cell(20, $high,
_(
'Tot HTVA'), 0, 0,
'R',
false,
'R',
false);
61 $this->
write_cell(20, $high,
_(
'Tot TVA NP'), 0, 0,
'R',
false,
false);
62 $this->
write_cell(20, $high,
_(
"Autre Tx"), 0, 0,
'R',
false);
63 $this->
write_cell(20, $high,
_(
'Tot TVA'), 0, 0,
'R',
false);
64 $this->
write_cell(20, $high,
_(
'TVAC'), 0, 0,
'R',
false);
75 $this->SetFont(
'Arial',
'I', 8);
76 $this->Cell(50,8,
' Journal '.$this->
get_ledger()->get_name(),0,0,
'C');
79 $this->Cell(30,8,
'Date '.$this->date.
" - Page ".$this->PageNo().
'/{nb}',0,0,
'L');
81 $this->Cell(0,8,
'Created by NOALYSS, online on https://www.noalyss.eu',0,0,
'R',
false,
'https://www.noalyss.eu');
104 die (__FILE__.
":".__LINE__.
'Journal invalide');
107 if ( $ret_detail ==
null )
return;
110 $prepared_query->prepare_reconcile_date();
113 $this->SetFont(
'DejaVu',
'', 6);
122 if ($internal !=
$row[
'jr_internal'])
127 $this->
write_cell(20, $high,
$row[
'jr_pj_number'].
".".
$row[
'jr_internal'], 1, 0,
'L',
true);
138 $internal=
$row[
'jr_internal'];
147 $msg=( $ret_row[
'qcode_bank']!=
"")?
"[".$ret_row[
'qcode_bank'].
"]":$ret_row[
'jr_internal'];
149 sprintf(
_(
"Paiement montant %s date %s methoded %s "), $ret_row[
'jr_montant'],
150 $ret_row[
'jr_date'],
$msg
155 if ( $this->show_col ==
true ) {
162 $this->
write_cell(20,$high,
_(
'Prix/Unit'),0,0,
'R');
170 $this->show_col=
false;
176 $comment=(
$row[
'j_text']==
"")?
$row[
'item_name']:
$row[
'j_text'];
184 $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.
_("actif, passif,charge,...")
: input, confirm and save new operations in edger of purchase the $_POST data is an array with these ...
: input, confirm and save new operations in edger of sales the $_POST data is an array with these key...
Class for jrn, class acc_ledger for manipulating the ledger AND some acc.
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)
write_cell($width, $height=0, $txt='', $border=0, $interline=0, $align='', $fill=false, $link='')
add a cell the text is not cut and don't return to this line if too large
write_multi($width, $interline, $txt, $border=0, $align='', $fill=false)
add a cell with automatic return to the line if the text is too long
fill_row($enable)
set color for row ,
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)
$show_col
$show_col (bool) show columns
setDossierInfo($dossier="n/a")
export()
export the ledger in PDF
Parent class for the print_ledger class.