noalyss Version-9
quant_purchase_sql.class.php
Go to the documentation of this file.
1<?php
2
3/**
4 * Autogenerated file
5 * This file is part of NOALYSS.
6 *
7 * NOALYSS is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * NOALYSS is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with NOALYSS; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 */
21require_once NOALYSS_INCLUDE . '/lib/data_sql.class.php';
22require_once NOALYSS_INCLUDE . '/class/database.class.php';
23
24
25/**
26 * class_quant_purchase_sql.php
27 *
28 * @file
29 * @brief ORM of the table public.quant_purchase
30 *
31 */
32
33/**
34 * @class Quant_Purchase_SQL
35 * @brief ORM of the table public.quant_purchase
36 */
38{
39
40 function __construct(DatabaseCore $p_cn, $p_id = -1)
41 {
42 $this->table = "public.quant_purchase";
43 $this->primary_key = "qp_id";
44 /*
45 * List of columns
46 */
47 $this->name = array(
48 "qp_id" => "qp_id"
49 , "qp_internal" => "qp_internal"
50 , "j_id" => "j_id"
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"
64 );
65 /*
66 * Type of columns
67 */
68 $this->type = array(
69 "qp_id" => "numeric"
70 , "qp_internal" => "text"
71 , "j_id" => "numeric"
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"
85 );
86
87
88 $this->default = array(
89 "qp_id" => "auto"
90 );
91
92 $this->date_format = "DD.MM.YYYY";
93 parent::__construct($p_cn, $p_id);
94 }
95
96
97}
$from_poste name
$input_from type
Definition: balance.inc.php:65
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...
$all table