46 $this->soc = $this->own->MY_NAME;
47 $this->date = date(
'd.m.Y');
48 parent::__construct($orientation,$unit,$format);
49 date_default_timezone_set (
'Europe/Paris');
50 $this->SetCreator(
"Noalyss");
54 $this->dossier = dossier::name().
" ".
$dossier;
59 $this->SetFont(
'DejaVu',
'B', 12);
61 parent::Cell(0,10,$this->dossier,
'B', 0,
'C');
70 $this->SetFont(
'Arial',
'', 8);
72 parent::Cell(0,8,
'Date '.$this->date.
" - Page ".$this->PageNo().
'/{nb}',0,0,
'C');
75 parent::Cell(0,8,
'Created by NOALYSS, online on https://www.noalyss.eu',0,0,
'C',
false,
'https://www.noalyss.eu');
86 if ( $p_jrn_type==
'ACH' )
90 quant_purchase.qp_supplier,
91 quant_purchase.qp_internal,
94 public.quant_purchase,
98 quant_purchase.j_id = jrnx.j_id AND
99 jrnx.j_grpt = jrn.jr_grpt_id and jr_id=$1',array($p_jr_id));
100 if (count(
$array)==0)
return array(
"ERREUR $p_jr_id",
'');
101 $customer_id=
$array[0][
'qp_supplier'];
103 $customer_qc=
$fiche->get_quick_code($customer_id);
104 $customer_name=
$fiche->getName();
105 return array($customer_qc,$customer_name);
107 if ( $p_jrn_type==
'VEN' )
116 quant_sold.j_id = jrnx.j_id AND
117 jrnx.j_grpt = jrn.jr_grpt_id and jr_id=$1',array($p_jr_id));
118 if (count(
$array)==0)
return array(
"ERREUR $p_jr_id",
'');
119 $customer_id=
$array[0][
'qs_client'];
121 $customer_qc=
$fiche->get_quick_code($customer_id);
122 $customer_name=
$fiche->getName();
123 return array($customer_qc,$customer_name);
125 if ( $p_jrn_type==
'FIN' )
132 quant_fin.jr_id =$1',array($p_jr_id));
133 if (count(
$array)==0)
return array(
"ERREUR $p_jr_id",
'',
'',
'');
134 $customer_id=
$array[0][
'qf_other'];
136 $customer_qc=
$fiche->get_quick_code($customer_id);
137 $customer_name=
$fiche->getName();
139 $bank_id=
$array[0][
'qf_bank'];
141 $bank_qc=
$fiche->get_quick_code($bank_id);
142 $bank_name=
$fiche->getName();
144 return array($customer_qc,$customer_name,$bank_qc,$bank_name);
164 $cn=Dossier::connect();
167 $pdf->SetFont(
'DejaVu',
'', 8);
170 $pdf->write_cell(
"50",$ln,
" heigh $ln ln $i",
'1',
$i);
178 $pdf->LongLine(
"100",3,
"
179 Contrairement à une opinion répandue le Lorem Ipsum n'est pas simplement du texte aléatoire. Il trouve ses racines dans une oeuvre de la littérature latine classique datant de 45 av. J.-C., le rendant vieux de 2000 ans. Un professeur du Hampden-Sydney College, en Virginie, s'est intéressé à un des mots latins les plus obscurs, consectetur, extrait d'un passage du Lorem Ipsum, et en étudiant tous les usages de ce mot dans la littérature classique, découvrit la source incontestable du Lorem Ipsum. Il provient en fait des sections 1.10.32 et 1.10.33 du De Finibus Bonorum et Malorum (Des Suprêmes Biens et des Suprêmes Maux) de Cicéron. Cet ouvrage, très populaire pendant la Renaissance, est un traité sur la théorie de l'éthique. Les premières lignes du Lorem Ipsum, Lorem ipsum dolor sit amet.., proviennent de la section 1.10.32 heigh $ln ln $i",
'1',
$i);
181 $pdf->write_cell(
"50",$ln,
" heigh $ln ln $i",
'1',
$i,align:
'C');
187 $pdf->Output(
'F',
'/tmp/a.pdf');
_("actif, passif,charge,...")
contains the class for connecting to Noalyss
define Class fiche and fiche def, those class are using class attribut. When adding or modifing new c...
Class to manage the company parameter (address, name...)
API for creating PDF, unicode, based on tfpdf.
API for creating PDF, unicode, based on tfpdf.
get_tiers($p_jr_id, $p_jrn_type)
retrieve the client name and quick_code
static test_me()
test the class
set_filter_operation($filter_operation)
setDossierInfo($dossier="n/a")
__construct(Database $p_cn, $orientation='P', $unit='mm', $format='A4')