19 |
c_j_id integer, |
c_j_id integer, |
20 |
c_date date NOT NULL, |
c_date date NOT NULL, |
21 |
c_internal text NOT NULL, |
c_internal text NOT NULL, |
22 |
c_montant double precision NOT NULL, |
c_montant numeric(20,4) not null, |
23 |
c_debit boolean DEFAULT true, |
c_debit boolean DEFAULT true, |
24 |
c_jrn_def integer NOT NULL, |
c_jrn_def integer NOT NULL, |
25 |
c_poste integer, |
c_poste integer, |
69 |
CREATE TABLE jrn ( |
CREATE TABLE jrn ( |
70 |
jr_id integer DEFAULT nextval('s_jrn'::text) NOT NULL, |
jr_id integer DEFAULT nextval('s_jrn'::text) NOT NULL, |
71 |
jr_def_id integer NOT NULL, |
jr_def_id integer NOT NULL, |
72 |
jr_montant numeric(8,4) NOT NULL, |
jr_montant numeric(20,4) NOT NULL, |
73 |
jr_comment text, |
jr_comment text, |
74 |
jr_date date, |
jr_date date, |
75 |
jr_grpt_id integer NOT NULL, |
jr_grpt_id integer NOT NULL, |
141 |
CREATE TABLE parm_money ( |
CREATE TABLE parm_money ( |
142 |
pm_id integer DEFAULT nextval('s_currency'::text), |
pm_id integer DEFAULT nextval('s_currency'::text), |
143 |
pm_code character(3) NOT NULL, |
pm_code character(3) NOT NULL, |
144 |
pm_rate double precision |
pm_rate numeric (20,4) |
145 |
); |
); |
146 |
CREATE TABLE parm_periode ( |
CREATE TABLE parm_periode ( |
147 |
p_id integer DEFAULT nextval('s_periode'::text) NOT NULL, |
p_id integer DEFAULT nextval('s_periode'::text) NOT NULL, |
173 |
CREATE TABLE tva_rate ( |
CREATE TABLE tva_rate ( |
174 |
tva_id integer NOT NULL, |
tva_id integer NOT NULL, |
175 |
tva_label text NOT NULL, |
tva_label text NOT NULL, |
176 |
tva_rate double precision DEFAULT 0.0 NOT NULL, |
tva_rate numeric (8,4) DEFAULT 0.0 NOT NULL, |
177 |
tva_comment text, |
tva_comment text, |
178 |
tva_poste text |
tva_poste text |
179 |
); |
); |