noalyss Version-9
quant_sold.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_sold_sql.php
27 *
28 * @file
29 * @brief ORM of the table public.quant_sold
30 */
31
32/**
33 * @class Quant_Sold_SQL
34 * @brief ORM of the table public.quant_sold
35 */
37{
38
39 function __construct(DatabaseCore $p_cn, $p_id = -1)
40 {
41 $this->table = "public.quant_sold";
42 $this->primary_key = "qs_id";
43 /*
44 * List of columns
45 */
46 $this->name = array(
47 "qs_id" => "qs_id"
48 , "qs_internal" => "qs_internal"
49 , "qs_fiche" => "qs_fiche"
50 , "qs_quantite" => "qs_quantite"
51 , "qs_price" => "qs_price"
52 , "qs_vat" => "qs_vat"
53 , "qs_vat_code" => "qs_vat_code"
54 , "qs_client" => "qs_client"
55 , "qs_valid" => "qs_valid"
56 , "j_id" => "j_id"
57 , "qs_vat_sided" => "qs_vat_sided"
58 , "qs_unit" => "qs_unit"
59 );
60 /*
61 * Type of columns
62 */
63 $this->type = array(
64 "qs_id" => "numeric"
65 , "qs_internal" => "text"
66 , "qs_fiche" => "numeric"
67 , "qs_quantite" => "numeric"
68 , "qs_price" => "numeric"
69 , "qs_vat" => "numeric"
70 , "qs_vat_code" => "numeric"
71 , "qs_client" => "numeric"
72 , "qs_valid" => "text"
73 , "j_id" => "numeric"
74 , "qs_vat_sided" => "numeric"
75 , "qs_unit" => "numeric"
76 );
77
78
79 $this->default = array(
80 "qs_id" => "auto"
81 );
82
83 $this->date_format = "DD.MM.YYYY";
84 parent::__construct($p_cn, $p_id);
85 }
86
87
88}
$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_sold.
__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