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");
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);
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
set_filter_operation($filter_operation)
setDossierInfo($dossier="n/a")
__construct(Database $p_cn, $orientation='P', $unit='mm', $format='A4')