21require_once NOALYSS_INCLUDE .
'/lib/data_sql.class.php';
22require_once NOALYSS_INCLUDE .
'/class/database.class.php';
42 $this->
table =
"public.quant_purchase";
43 $this->primary_key =
"qp_id";
49 ,
"qp_internal" =>
"qp_internal"
51 ,
"qp_fiche" =>
"qp_fiche"
52 ,
"qp_quantite" =>
"qp_quantite"
53 ,
"qp_price" =>
"qp_price"
54 ,
"qp_vat" =>
"qp_vat"
55 ,
"qp_vat_code" =>
"qp_vat_code"
56 ,
"qp_nd_amount" =>
"qp_nd_amount"
57 ,
"qp_nd_tva" =>
"qp_nd_tva"
58 ,
"qp_nd_tva_recup" =>
"qp_nd_tva_recup"
59 ,
"qp_supplier" =>
"qp_supplier"
60 ,
"qp_valid" =>
"qp_valid"
61 ,
"qp_dep_priv" =>
"qp_dep_priv"
62 ,
"qp_vat_sided" =>
"qp_vat_sided"
63 ,
"qp_unit" =>
"qp_unit"
70 ,
"qp_internal" =>
"text"
72 ,
"qp_fiche" =>
"numeric"
73 ,
"qp_quantite" =>
"numeric"
74 ,
"qp_price" =>
"numeric"
75 ,
"qp_vat" =>
"numeric"
76 ,
"qp_vat_code" =>
"numeric"
77 ,
"qp_nd_amount" =>
"numeric"
78 ,
"qp_nd_tva" =>
"numeric"
79 ,
"qp_nd_tva_recup" =>
"numeric"
80 ,
"qp_supplier" =>
"numeric"
81 ,
"qp_valid" =>
"text"
82 ,
"qp_dep_priv" =>
"numeric"
83 ,
"qp_vat_sided" =>
"numeric"
84 ,
"qp_unit" =>
"numeric"
88 $this->
default = array(
92 $this->date_format =
"DD.MM.YYYY";
93 parent::__construct($p_cn,
$p_id);
This class allow you to connect to the postgresql database, execute sql, retrieve data.
ORM of the table public.quant_purchase.
__construct(DatabaseCore $p_cn, $p_id=-1)
Interface : this wrapper is used to created easily a wrapper to a table (ORM) You must create a class...