altocompta/sql/mod-be.sql
2004-03-28 11:14:45 +00:00

2458 lines
56 KiB
SQL
Raw Blame History

--
-- PostgreSQL database dump
--
\connect - phpcompta
SET search_path = public, pg_catalog;
--
-- TOC entry 42 (OID 23691)
-- Name: tmp_pcmn; Type: TABLE; Schema: public; Owner: phpcompta
--
CREATE TABLE tmp_pcmn (
pcm_val integer NOT NULL,
pcm_lib text,
pcm_val_parent integer DEFAULT 0,
pcm_country character(2) DEFAULT 'BE' NOT NULL
);
--
-- TOC entry 43 (OID 23698)
-- Name: version; Type: TABLE; Schema: public; Owner: phpcompta
--
CREATE TABLE "version" (
val integer
);
--
-- TOC entry 2 (OID 23700)
-- Name: s_periode; Type: SEQUENCE; Schema: public; Owner: phpcompta
--
CREATE SEQUENCE s_periode
START 1
INCREMENT 1
MAXVALUE 9223372036854775807
MINVALUE 1
CACHE 1;
--
-- TOC entry 4 (OID 23702)
-- Name: s_currency; Type: SEQUENCE; Schema: public; Owner: phpcompta
--
CREATE SEQUENCE s_currency
START 1
INCREMENT 1
MAXVALUE 9223372036854775807
MINVALUE 1
CACHE 1;
--
-- TOC entry 44 (OID 23704)
-- Name: parm_money; Type: TABLE; Schema: public; Owner: phpcompta
--
CREATE TABLE parm_money (
pm_id integer DEFAULT nextval('s_currency'::text),
pm_code character(3) NOT NULL,
pm_rate double precision
);
--
-- TOC entry 45 (OID 23707)
-- Name: parm_periode; Type: TABLE; Schema: public; Owner: phpcompta
--
CREATE TABLE parm_periode (
p_id integer DEFAULT nextval('s_periode'::text) NOT NULL,
p_start date NOT NULL,
p_end date,
p_exercice text DEFAULT to_char(now(), 'YYYY'::text) NOT NULL,
p_closed boolean DEFAULT false
);
--
-- TOC entry 6 (OID 23715)
-- Name: s_jrn_def; Type: SEQUENCE; Schema: public; Owner: phpcompta
--
CREATE SEQUENCE s_jrn_def
START 5
INCREMENT 1
MAXVALUE 9223372036854775807
MINVALUE 1
CACHE 1;
--
-- TOC entry 8 (OID 23717)
-- Name: s_grpt; Type: SEQUENCE; Schema: public; Owner: phpcompta
--
CREATE SEQUENCE s_grpt
START 1
INCREMENT 1
MAXVALUE 9223372036854775807
MINVALUE 1
CACHE 1;
--
-- TOC entry 10 (OID 23719)
-- Name: s_jrn_op; Type: SEQUENCE; Schema: public; Owner: phpcompta
--
CREATE SEQUENCE s_jrn_op
START 1
INCREMENT 1
MAXVALUE 9223372036854775807
MINVALUE 1
CACHE 1;
--
-- TOC entry 12 (OID 23721)
-- Name: s_jrn; Type: SEQUENCE; Schema: public; Owner: phpcompta
--
CREATE SEQUENCE s_jrn
START 1
INCREMENT 1
MAXVALUE 9223372036854775807
MINVALUE 1
CACHE 1;
--
-- TOC entry 46 (OID 23723)
-- Name: jrn_type; Type: TABLE; Schema: public; Owner: phpcompta
--
CREATE TABLE jrn_type (
jrn_type_id character(3) NOT NULL,
jrn_desc text
);
--
-- TOC entry 47 (OID 23728)
-- Name: jrn_def; Type: TABLE; Schema: public; Owner: phpcompta
--
CREATE TABLE jrn_def (
jrn_def_id integer DEFAULT nextval('s_jrn_def'::text) NOT NULL,
jrn_def_name text NOT NULL,
jrn_def_class_deb text,
jrn_def_class_cred text,
jrn_def_fiche_deb text,
jrn_def_fiche_cred text,
jrn_deb_max_line integer DEFAULT 1,
jrn_cred_max_line integer DEFAULT 1,
jrn_def_ech boolean DEFAULT false,
jrn_def_ech_lib text,
jrn_def_type character(3) NOT NULL,
jrn_def_code text NOT NULL
);
--
-- TOC entry 14 (OID 23737)
-- Name: s_jrnx; Type: SEQUENCE; Schema: public; Owner: phpcompta
--
CREATE SEQUENCE s_jrnx
START 1
INCREMENT 1
MAXVALUE 9223372036854775807
MINVALUE 1
CACHE 1;
--
-- TOC entry 48 (OID 23739)
-- Name: jrn; Type: TABLE; Schema: public; Owner: phpcompta
--
CREATE TABLE jrn (
jr_id integer DEFAULT nextval('s_jrn'::text) NOT NULL,
jr_def_id integer NOT NULL,
jr_montant double precision NOT NULL,
jr_comment text,
jr_date date,
jr_grpt_id integer NOT NULL,
jr_internal text,
jr_tech_date timestamp without time zone DEFAULT now() NOT NULL,
jr_tech_per integer NOT NULL,
jrn_ech date,
jr_ech date,
jr_rapt text
);
--
-- TOC entry 49 (OID 23746)
-- Name: jrnx; Type: TABLE; Schema: public; Owner: phpcompta
--
CREATE TABLE jrnx (
j_id integer DEFAULT nextval('s_jrn_op'::text) NOT NULL,
j_date date DEFAULT now(),
j_montant double precision DEFAULT 0,
j_poste integer NOT NULL,
j_grpt integer NOT NULL,
j_rapt text,
j_jrn_def integer NOT NULL,
j_debit boolean DEFAULT true,
j_text text,
j_centralized boolean DEFAULT false,
j_internal text,
j_tech_user text NOT NULL,
j_tech_date timestamp without time zone DEFAULT now() NOT NULL,
j_tech_per integer
);
--
-- TOC entry 50 (OID 23757)
-- Name: user_pref; Type: TABLE; Schema: public; Owner: phpcompta
--
CREATE TABLE user_pref (
pref_user text NOT NULL,
pref_periode integer NOT NULL
);
--
-- TOC entry 16 (OID 23762)
-- Name: s_formdef; Type: SEQUENCE; Schema: public; Owner: phpcompta
--
CREATE SEQUENCE s_formdef
START 1
INCREMENT 1
MAXVALUE 9223372036854775807
MINVALUE 1
CACHE 1;
--
-- TOC entry 18 (OID 23764)
-- Name: s_form; Type: SEQUENCE; Schema: public; Owner: phpcompta
--
CREATE SEQUENCE s_form
START 1
INCREMENT 1
MAXVALUE 9223372036854775807
MINVALUE 1
CACHE 1;
--
-- TOC entry 51 (OID 23766)
-- Name: formdef; Type: TABLE; Schema: public; Owner: phpcompta
--
CREATE TABLE formdef (
fr_id integer DEFAULT nextval('s_formdef'::text) NOT NULL,
fr_label text
);
--
-- TOC entry 52 (OID 23772)
-- Name: form; Type: TABLE; Schema: public; Owner: phpcompta
--
CREATE TABLE form (
fo_id integer DEFAULT nextval('s_form'::text) NOT NULL,
fo_fr_id integer,
fo_pos integer,
fo_label text,
fo_formula text
);
--
-- TOC entry 20 (OID 23778)
-- Name: s_isup; Type: SEQUENCE; Schema: public; Owner: phpcompta
--
CREATE SEQUENCE s_isup
START 1
INCREMENT 1
MAXVALUE 9223372036854775807
MINVALUE 1
CACHE 1;
--
-- TOC entry 22 (OID 23780)
-- Name: s_idef; Type: SEQUENCE; Schema: public; Owner: phpcompta
--
CREATE SEQUENCE s_idef
START 1
INCREMENT 1
MAXVALUE 9223372036854775807
MINVALUE 1
CACHE 1;
--
-- TOC entry 24 (OID 23782)
-- Name: s_centralized; Type: SEQUENCE; Schema: public; Owner: phpcompta
--
CREATE SEQUENCE s_centralized
START 1
INCREMENT 1
MAXVALUE 9223372036854775807
MINVALUE 1
CACHE 1;
--
-- TOC entry 53 (OID 23784)
-- Name: centralized; Type: TABLE; Schema: public; Owner: phpcompta
--
CREATE TABLE centralized (
c_id integer DEFAULT nextval('s_centralized'::text) NOT NULL,
c_j_id integer,
c_date date NOT NULL,
c_internal text NOT NULL,
c_montant double precision NOT NULL,
c_debit boolean DEFAULT 't',
c_jrn_def integer NOT NULL,
c_poste integer,
c_description text,
c_grp integer NOT NULL,
c_comment text,
c_rapt text,
c_periode integer
);
--
-- TOC entry 26 (OID 23791)
-- Name: s_user_jrn; Type: SEQUENCE; Schema: public; Owner: phpcompta
--
CREATE SEQUENCE s_user_jrn
START 1
INCREMENT 1
MAXVALUE 9223372036854775807
MINVALUE 1
CACHE 1;
--
-- TOC entry 28 (OID 23793)
-- Name: s_user_act; Type: SEQUENCE; Schema: public; Owner: phpcompta
--
CREATE SEQUENCE s_user_act
START 1
INCREMENT 1
MAXVALUE 9223372036854775807
MINVALUE 1
CACHE 1;
--
-- TOC entry 54 (OID 23795)
-- Name: user_sec_jrn; Type: TABLE; Schema: public; Owner: phpcompta
--
CREATE TABLE user_sec_jrn (
uj_id integer DEFAULT nextval('s_user_jrn'::text) NOT NULL,
uj_login text,
uj_jrn_id integer,
uj_priv text
);
--
-- TOC entry 55 (OID 23801)
-- Name: action; Type: TABLE; Schema: public; Owner: phpcompta
--
CREATE TABLE "action" (
ac_id integer NOT NULL,
ac_description text NOT NULL
);
--
-- TOC entry 56 (OID 23806)
-- Name: user_sec_act; Type: TABLE; Schema: public; Owner: phpcompta
--
CREATE TABLE user_sec_act (
ua_id integer DEFAULT nextval('s_user_act'::text) NOT NULL,
ua_login text,
ua_act_id integer
);
--
-- TOC entry 30 (OID 23812)
-- Name: s_jrnaction; Type: SEQUENCE; Schema: public; Owner: phpcompta
--
CREATE SEQUENCE s_jrnaction
START 1
INCREMENT 1
MAXVALUE 9223372036854775807
MINVALUE 1
CACHE 1;
--
-- TOC entry 57 (OID 23814)
-- Name: jrn_action; Type: TABLE; Schema: public; Owner: phpcompta
--
CREATE TABLE jrn_action (
ja_id integer DEFAULT nextval('s_jrnaction'::text) NOT NULL,
ja_name text NOT NULL,
ja_desc text,
ja_url text NOT NULL,
ja_action text NOT NULL,
ja_lang text DEFAULT 'FR',
ja_jrn_type character(3)
);
--
-- TOC entry 58 (OID 23821)
-- Name: fiche_ref_def; Type: TABLE; Schema: public; Owner: phpcompta
--
CREATE TABLE fiche_ref_def (
frd_id integer,
frd_text text
);
--
-- TOC entry 59 (OID 23826)
-- Name: attr_valeur; Type: TABLE; Schema: public; Owner: phpcompta
--
CREATE TABLE attr_valeur (
f_id integer,
ad_id integer,
av_text text
);
--
-- TOC entry 60 (OID 23831)
-- Name: jnt_fic_def_att_def; Type: TABLE; Schema: public; Owner: phpcompta
--
CREATE TABLE jnt_fic_def_att_def (
fd_id integer,
ad_id integer
);
--
-- TOC entry 61 (OID 24630)
-- Name: tva_rate; Type: TABLE; Schema: public; Owner: phpcompta
--
CREATE TABLE tva_rate (
tva_id integer NOT NULL,
tva_label text NOT NULL,
tva_rate double precision DEFAULT 0.0 NOT NULL,
tva_comment text,
tva_poste text
);
--
-- TOC entry 32 (OID 24640)
-- Name: s_fiche; Type: SEQUENCE; Schema: public; Owner: phpcompta
--
CREATE SEQUENCE s_fiche
START 1
INCREMENT 1
MAXVALUE 9223372036854775807
MINVALUE 1
CACHE 1;
--
-- TOC entry 34 (OID 24642)
-- Name: s_fiche_def_ref; Type: SEQUENCE; Schema: public; Owner: phpcompta
--
CREATE SEQUENCE s_fiche_def_ref
START 1
INCREMENT 1
MAXVALUE 9223372036854775807
MINVALUE 1
CACHE 1;
--
-- TOC entry 36 (OID 24644)
-- Name: s_fdef; Type: SEQUENCE; Schema: public; Owner: phpcompta
--
CREATE SEQUENCE s_fdef
START 1
INCREMENT 1
MAXVALUE 9223372036854775807
MINVALUE 1
CACHE 1;
--
-- TOC entry 38 (OID 24646)
-- Name: s_attr_def; Type: SEQUENCE; Schema: public; Owner: phpcompta
--
CREATE SEQUENCE s_attr_def
START 1
INCREMENT 1
MAXVALUE 9223372036854775807
MINVALUE 1
CACHE 1;
--
-- TOC entry 40 (OID 24648)
-- Name: s_jnt_fic_att_value; Type: SEQUENCE; Schema: public; Owner: phpcompta
--
CREATE SEQUENCE s_jnt_fic_att_value
START 1
INCREMENT 1
MAXVALUE 9223372036854775807
MINVALUE 1
CACHE 1;
--
-- TOC entry 62 (OID 24650)
-- Name: fiche_def_ref; Type: TABLE; Schema: public; Owner: phpcompta
--
CREATE TABLE fiche_def_ref (
frd_id integer DEFAULT nextval('s_fiche_def_ref'::text) NOT NULL,
frd_text text,
frd_class_base integer
);
--
-- TOC entry 63 (OID 24658)
-- Name: fiche_def; Type: TABLE; Schema: public; Owner: phpcompta
--
CREATE TABLE fiche_def (
fd_id integer DEFAULT nextval('s_fdef'::text) NOT NULL,
fd_class_base integer,
fd_label text NOT NULL,
fd_create_account boolean DEFAULT false,
frd_id integer NOT NULL
);
--
-- TOC entry 64 (OID 24680)
-- Name: attr_def; Type: TABLE; Schema: public; Owner: phpcompta
--
CREATE TABLE attr_def (
ad_id integer DEFAULT nextval('s_attr_def'::text) NOT NULL,
ad_text text
);
--
-- TOC entry 65 (OID 24688)
-- Name: attr_min; Type: TABLE; Schema: public; Owner: phpcompta
--
CREATE TABLE attr_min (
frd_id integer,
ad_id integer
);
--
-- TOC entry 66 (OID 24698)
-- Name: fiche; Type: TABLE; Schema: public; Owner: phpcompta
--
CREATE TABLE fiche (
f_id integer DEFAULT nextval('s_fiche'::text) NOT NULL,
fd_id integer
);
--
-- TOC entry 67 (OID 24707)
-- Name: jnt_fic_att_value; Type: TABLE; Schema: public; Owner: phpcompta
--
CREATE TABLE jnt_fic_att_value (
jft_id integer DEFAULT nextval('s_jnt_fic_att_value'::text) NOT NULL,
f_id integer,
ad_id integer
);
--
-- TOC entry 68 (OID 24720)
-- Name: attr_value; Type: TABLE; Schema: public; Owner: phpcompta
--
CREATE TABLE attr_value (
jft_id integer,
av_text text
);
--
-- TOC entry 69 (OID 24729)
-- Name: jnt_fic_attr; Type: TABLE; Schema: public; Owner: phpcompta
--
CREATE TABLE jnt_fic_attr (
fd_id integer,
ad_id integer
);
--
-- TOC entry 70 (OID 25214)
-- Name: vw_fiche_attr; Type: VIEW; Schema: public; Owner: phpcompta
--
CREATE VIEW vw_fiche_attr AS
SELECT a.f_id, fd_id, a.av_text AS vw_name, b.av_text AS vw_sell, c.av_text AS vw_buy, d.av_text AS tva_code, tva_id, tva_rate, tva_label, e.av_text AS vw_addr, f.av_text AS vw_cp, frd_id FROM ((((((((SELECT f_id, fd_id, av_text FROM (((fiche JOIN jnt_fic_att_value USING (f_id)) JOIN attr_value USING (jft_id)) JOIN attr_def USING (ad_id)) WHERE (ad_id = 1)) a LEFT JOIN (SELECT f_id, av_text FROM (((fiche JOIN jnt_fic_att_value USING (f_id)) JOIN attr_value USING (jft_id)) JOIN attr_def USING (ad_id)) WHERE (ad_id = 6)) b ON ((a.f_id = b.f_id))) LEFT JOIN (SELECT f_id, av_text FROM (((fiche JOIN jnt_fic_att_value USING (f_id)) JOIN attr_value USING (jft_id)) JOIN attr_def USING (ad_id)) WHERE (ad_id = 7)) c ON ((a.f_id = c.f_id))) LEFT JOIN (SELECT f_id, av_text FROM (((fiche JOIN jnt_fic_att_value USING (f_id)) JOIN attr_value USING (jft_id)) JOIN attr_def USING (ad_id)) WHERE (ad_id = 2)) d ON ((a.f_id = d.f_id))) LEFT JOIN (SELECT f_id, av_text FROM (((fiche JOIN jnt_fic_att_value USING (f_id)) JOIN attr_value USING (jft_id)) JOIN attr_def USING (ad_id)) WHERE (ad_id = 14)) e ON ((a.f_id = e.f_id))) LEFT JOIN (SELECT f_id, av_text FROM (((fiche JOIN jnt_fic_att_value USING (f_id)) JOIN attr_value USING (jft_id)) JOIN attr_def USING (ad_id)) WHERE (ad_id = 15)) f ON ((a.f_id = f.f_id))) LEFT JOIN tva_rate ON ((d.av_text = (tva_rate.tva_id)::text))) JOIN fiche_def USING (fd_id));
--
-- Data for TOC entry 95 (OID 23691)
-- Name: tmp_pcmn; Type: TABLE DATA; Schema: public; Owner: phpcompta
--
COPY tmp_pcmn (pcm_val, pcm_lib, pcm_val_parent, pcm_country) FROM stdin;
10 Capital 1 BE
100 Capital souscrit 10 BE
11 Prime d'<EFBFBD>mission 1 BE
12 Plus Value de r<><72>valuation 1 BE
13 R<>serve 1 BE
130 R<>serve l<>gale 13 BE
131 R<>serve indisponible 13 BE
1310 R<>serve pour actions propres 131 BE
1311 Autres r<>serves indisponibles 131 BE
132 R<>serves immunis<69>es 13 BE
133 R<>serves disponibles 13 BE
14 B<>n<EFBFBD>fice ou perte report<72>e 1 BE
140 B<>n<EFBFBD>fice report<72> 14 BE
141 Perte report<72>e 14 BE
15 Subside en capital 1 BE
16 Provisions pour risques et charges 1 BE
160 Provisions pour pensions et obligations similaires 16 BE
161 Provisions pour charges fiscales 16 BE
162 Provisions pour grosses r<>paration et gros entretien 16 BE
17 Dettes <20> plus d'un an 1 BE
170 Emprunts subordonn<EFBFBD>s 17 BE
1700 convertibles 170 BE
1701 non convertibles 170 BE
171 Emprunts subordonn<EFBFBD>s 17 BE
1710 convertibles 170 BE
1711 non convertibles 170 BE
172 Dettes de locations financement 17 BE
173 Etablissement de cr<EFBFBD>dit 17 BE
1730 Dettes en comptes 173 BE
1731 Promesses 173 BE
1732 Cr<EFBFBD>dits d'acceptation 173 BE
174 Autres emprunts 17 BE
175 Dettes commerciales 17 BE
1750 Fournisseurs 175 BE
1751 Effets <20> payer 175 BE
176 Acomptes re<72>us sur commandes 17 BE
178 Cautionnement re<72>us en num<75>raires 17 BE
179 Dettes diverses 17 BE
20 Frais d'<EFBFBD>tablissement 2 BE
200 Frais de constitution et d'augmentation de capital 20 BE
201 Frais d'<EFBFBD>mission d'emprunts et primes de remboursement 20 BE
202 Autres frais d'<EFBFBD>tablissement 20 BE
204 Frais de restructuration 20 BE
21 Immobilisations incorporelles 2 BE
210 Frais de recherche et de d<EFBFBD>veloppement 21 BE
211 Concessions, brevet, licence savoir faire, marque et droit similaires 21 BE
212 Goodwill 21 BE
213 Acomptes vers<EFBFBD>s 21 BE
22 Terrains et construction 2 BE
220 Terrains 22 BE
221 Construction 22 BE
222 Terrains b<EFBFBD>tis 22 BE
223 Autres droits r<EFBFBD>els sur des immeubles 22 BE
23 Installations, machines et outillages 2 BE
24 Mobilier et Mat<EFBFBD>riel roulant 2 BE
25 Immobilisations d<EFBFBD>tenus en location-financement et droits similaires 2 BE
250 Terrains 25 BE
251 Construction 25 BE
252 Terrains b<EFBFBD>tis 25 BE
253 Mobilier et mat<EFBFBD>riels roulants 25 BE
26 Autres immobilisations corporelles 2 BE
27 Immobilisations corporelles en cours et acomptes vers<EFBFBD>s 2 BE
28 Immobilisations financi<EFBFBD>res 2 BE
280 Participation dans des entreprises li<EFBFBD>es 28 BE
2800 Valeur d'acquisition 280 BE
2801 Montants non-appel<65>s(-) 280 BE
2808 Plus-values act<63>es 280 BE
2809 R<>ductions de valeurs act<63>es 280 BE
281 Cr<43>ance sur des entreprises li<6C>es 28 BE
2810 Cr<43>ance en compte 281 BE
2811 Effets <20> recevoir 281 BE
2812 Titre <20> reveny fixe 281 BE
2817 Cr<43>ances douteuses 281 BE
2819 R<>duction de valeurs act<63>es 281 BE
282 Participations dans des entreprises avec lesquelles il existe un lien de participation 28 BE
2820 Valeur d'acquisition 282 BE
2821 Montants non-appel<EFBFBD>s(-) 282 BE
2828 Plus-values act<EFBFBD>es 282 BE
2829 R<EFBFBD>ductions de valeurs act<EFBFBD>es 282 BE
283 Cr<EFBFBD>ances sur des entreprises avec lesquelles existe un lien de participation 28 BE
2830 Cr<EFBFBD>ance en compte 283 BE
2831 Effets <EFBFBD> recevoir 283 BE
2832 Titre <EFBFBD> revenu fixe 283 BE
2837 Cr<EFBFBD>ances douteuses 283 BE
2839 R<EFBFBD>duction de valeurs act<EFBFBD>es 283 BE
284 Autres actions et parts 28 BE
2840 Valeur d'acquisition 284 BE
2841 Montants non-appel<65>s(-) 284 BE
2848 Plus-values act<63>es 284 BE
2849 R<>ductions de valeurs act<63>es 284 BE
285 Autres cr<63>ances 28 BE
2850 Cr<43>ance en compte 285 BE
2851 Effets <20> recevoir 285 BE
2852 Titre <20> revenu fixe 285 BE
2857 Cr<43>ances douteuses 285 BE
2859 R<>ductions de valeurs act<63>es 285 BE
288 Cautionnements vers<72>s en num<75>raires 28 BE
29 Cr<43>ances <20> plus d'un an 2 BE
290 Cr<EFBFBD>ances commerciales 29 BE
2900 Clients 290 BE
2901 Effets <EFBFBD> recevoir 290 BE
2906 Acomptes vers<EFBFBD>s 290 BE
2907 Cr<EFBFBD>ances douteuses 290 BE
2909 R<EFBFBD>ductions de valeurs act<EFBFBD>es 290 BE
291 Autres cr<EFBFBD>ances 29 BE
2910 Cr<EFBFBD>ances en comptes 291 BE
2911 Effets <EFBFBD> recevoir 291 BE
2917 Cr<EFBFBD>ances douteuses 291 BE
2919 R<EFBFBD>ductions de valeurs act<EFBFBD>es(-) 291 BE
30 Approvisionements - Mati<EFBFBD>res premi<EFBFBD>res 3 BE
300 Valeur d'acquisition 30 BE
309 R<>ductions de valeur act<63>es 30 BE
31 Approvisionnements - fournitures 3 BE
310 Valeur d'acquisition 31 BE
319 R<EFBFBD>ductions de valeurs act<EFBFBD>es(-) 31 BE
32 En-cours de fabrication 3 BE
320 Valeurs d'acquisition 32 BE
329 R<>ductions de valeur act<63>es 32 BE
33 Produits finis 3 BE
330 Valeur d'acquisition 33 BE
339 R<EFBFBD>ductions de valeur act<EFBFBD>es 33 BE
34 Marchandises 3 BE
340 Valeur d'acquisition 34 BE
349 R<>ductions de valeur act<63>es 34 BE
35 Immeubles destin<69>s <20> la vente 3 BE
350 Valeur d'acquisition 35 BE
359 R<EFBFBD>ductions de valeur act<EFBFBD>es 35 BE
36 Acomptes vers<EFBFBD>s sur achats pour stocks 3 BE
360 Valeur d'acquisition 36 BE
369 R<>ductions de valeur act<63>es 36 BE
37 Commandes en cours <20>x<EFBFBD>cution 3 BE
370 Valeur d'acquisition 37 BE
371 B<EFBFBD>n<EFBFBD>fice pris en compte 37 BE
379 R<EFBFBD>ductions de valeur act<EFBFBD>es 37 BE
40 Cr<EFBFBD>ances commerciales 4 BE
400 Clients 40 BE
401 Effets <EFBFBD> recevoir 40 BE
404 Produits <EFBFBD> recevoir 40 BE
406 Acomptes vers<EFBFBD>s 40 BE
407 Cr<EFBFBD>ances douteuses 40 BE
409 R<EFBFBD>ductions de valeur act<EFBFBD>es 40 BE
41 Autres cr<EFBFBD>ances 4 BE
410 Capital appel<EFBFBD> non vers<EFBFBD> 41 BE
411 TVA <EFBFBD> r<EFBFBD>cup<EFBFBD>rer 41 BE
412 Imp<EFBFBD>ts et pr<EFBFBD>comptes <EFBFBD> r<EFBFBD>cup<EFBFBD>rer 41 BE
4120 Imp<EFBFBD>t belge sur le r<EFBFBD>sultat 412 BE
4121 Imp<EFBFBD>t belge sur le r<EFBFBD>sultat 412 BE
4122 Imp<EFBFBD>t belge sur le r<EFBFBD>sultat 412 BE
4123 Imp<EFBFBD>t belge sur le r<EFBFBD>sultat 412 BE
4124 Imp<EFBFBD>t belge sur le r<EFBFBD>sultat 412 BE
4125 Autres imp<EFBFBD>ts et taxes belges 412 BE
4126 Autres imp<EFBFBD>ts et taxes belges 412 BE
4127 Autres imp<EFBFBD>ts et taxes belges 412 BE
4128 Imp<EFBFBD>ts et taxes <EFBFBD>trangers 412 BE
414 Produits <EFBFBD> recevoir 41 BE
416 Cr<EFBFBD>ances diverses 41 BE
4160 Comptes de l'exploitant 416 BE
417 Cr<43>ances douteuses 41 BE
418 Cautionnements vers<72>s en num<75>raires 41 BE
419 R<>ductions de valeur act<63>es 41 BE
42 Dettes <20> plus dun an <20>ch<63>ant dans l'ann<EFBFBD>e 4 BE
420 Emprunts subordonn<EFBFBD>s 42 BE
4200 convertibles 420 BE
4201 non convertibles 420 BE
421 Emprunts subordonn<EFBFBD>s 42 BE
4210 convertibles 420 BE
4211 non convertibles 420 BE
422 Dettes de locations financement 42 BE
423 Etablissement de cr<EFBFBD>dit 42 BE
4230 Dettes en comptes 423 BE
4231 Promesses 423 BE
4232 Cr<EFBFBD>dits d'acceptation 423 BE
424 Autres emprunts 42 BE
425 Dettes commerciales 42 BE
4250 Fournisseurs 425 BE
4251 Effets <20> payer 425 BE
426 Acomptes re<72>us sur commandes 42 BE
428 Cautionnement re<72>us en num<75>raires 42 BE
429 Dettes diverses 42 BE
43 Dettes financi<63>res 4 BE
430 Etablissements de cr<63>dit - Emprunts <20> compte <20> terme fixe 43 BE
431 Etablissements de cr<63>dit - Promesses 43 BE
432 Etablissements de cr<63>dit - Cr<43>dits d'acceptation 43 BE
433 Etablissements de cr<EFBFBD>dit -Dettes en comptes courant 43 BE
439 Autres emprunts 43 BE
44 Dettes commerciales 4 BE
440 Fournisseurs 44 BE
441 Effets <EFBFBD> payer 44 BE
444 Factures <EFBFBD> recevoir 44 BE
45 Dettes fiscales, salariales et sociales 4 BE
450 Dettes fiscales estim<EFBFBD>es 45 BE
4500 Imp<EFBFBD>ts belges sur le r<EFBFBD>sultat 450 BE
4501 Imp<EFBFBD>ts belges sur le r<EFBFBD>sultat 450 BE
4502 Imp<EFBFBD>ts belges sur le r<EFBFBD>sultat 450 BE
4503 Imp<EFBFBD>ts belges sur le r<EFBFBD>sultat 450 BE
4504 Imp<EFBFBD>ts belges sur le r<EFBFBD>sultat 450 BE
4505 Autres imp<EFBFBD>ts et taxes belges 450 BE
4506 Autres imp<EFBFBD>ts et taxes belges 450 BE
4507 Autres imp<EFBFBD>ts et taxes belges 450 BE
4508 Imp<EFBFBD>ts et taxes <EFBFBD>trangers 450 BE
451 TVA <EFBFBD> payer 45 BE
452 Imp<EFBFBD>ts et taxes <EFBFBD> payer 45 BE
4520 Imp<EFBFBD>ts belges sur le r<EFBFBD>sultat 452 BE
4521 Imp<EFBFBD>ts belges sur le r<EFBFBD>sultat 452 BE
4522 Imp<EFBFBD>ts belges sur le r<EFBFBD>sultat 452 BE
4523 Imp<EFBFBD>ts belges sur le r<EFBFBD>sultat 452 BE
4524 Imp<EFBFBD>ts belges sur le r<EFBFBD>sultat 452 BE
4525 Autres imp<EFBFBD>ts et taxes belges 452 BE
4526 Autres imp<EFBFBD>ts et taxes belges 452 BE
4527 Autres imp<EFBFBD>ts et taxes belges 452 BE
4528 Imp<EFBFBD>ts et taxes <EFBFBD>trangers 452 BE
453 Pr<EFBFBD>comptes retenus 45 BE
454 Office National de la S<EFBFBD>curit<EFBFBD> Sociales 45 BE
455 R<EFBFBD>mun<EFBFBD>rations 45 BE
456 P<EFBFBD>cules de vacances 45 BE
459 Autres dettes sociales 45 BE
46 Acomptes re<EFBFBD>us sur commandes 4 BE
47 Dettes d<EFBFBD>coulant de l'affectation du r<>sultat 4 BE
470 Dividendes et tanti<74>mes d'exercices ant<EFBFBD>rieurs 47 BE
471 Dividendes de l'exercice 47 BE
472 Tanti<74>mes de l'exercice 47 BE
473 Autres allocataires 47 BE
48 Dettes diverses 4 BE
480 Obligations et coupons <EFBFBD>chus 48 BE
488 Cautionnements re<EFBFBD>us en num<EFBFBD>raires 48 BE
489 Autres dettes diverses 48 BE
4890 Compte de l'exploitant 489 BE
49 Comptes de r<>gularisation 4 BE
490 Charges <20> reporter 49 BE
491 Produits acquis 49 BE
492 Charges <20> imputer 49 BE
493 Produits <20> reporter 49 BE
499 Comptes d'attentes 49 BE
50 Actions propres 5 BE
51 Actions et parts 5 BE
510 Valeur d'acquisition 51 BE
511 Montant non appel<65>s 51 BE
519 R<>ductions de valeur act<63>es 51 BE
52 Titres <20> revenu fixe 5 BE
520 Valeur d'acquisition 52 BE
529 R<EFBFBD>ductions de valeur act<EFBFBD>es 52 BE
53 D<EFBFBD>p<EFBFBD>ts <EFBFBD> terme 5 BE
530 de plus d'un an 53 BE
531 de plus d'un mois et d'un an au plus 53 BE
532 d'un mois au plus 53 BE
539 R<EFBFBD>ductions de valeur act<EFBFBD>es 53 BE
54 Valeurs <EFBFBD>chues <EFBFBD> l'encaissement 5 BE
55 Etablissement de cr<63>dit 5 BE
550 Banque 1 55 BE
5500 Comptes courants 550 BE
5501 Ch<43>ques <20>mis (-) 550 BE
5509 R<>duction de valeur act<63>e 550 BE
5510 Comptes courants 551 BE
5511 Ch<43>ques <20>mis (-) 551 BE
5519 R<>duction de valeur act<63>e 551 BE
5520 Comptes courants 552 BE
5521 Ch<43>ques <20>mis (-) 552 BE
5529 R<>duction de valeur act<63>e 552 BE
5530 Comptes courants 553 BE
5531 Ch<43>ques <20>mis (-) 553 BE
5539 R<>duction de valeur act<63>e 553 BE
5540 Comptes courants 554 BE
5541 Ch<43>ques <20>mis (-) 554 BE
5549 R<>duction de valeur act<63>e 554 BE
5550 Comptes courants 555 BE
5551 Ch<43>ques <20>mis (-) 555 BE
5559 R<>duction de valeur act<63>e 555 BE
5560 Comptes courants 556 BE
5561 Ch<43>ques <20>mis (-) 556 BE
5569 R<>duction de valeur act<63>e 556 BE
5570 Comptes courants 557 BE
5571 Ch<43>ques <20>mis (-) 557 BE
5579 R<>duction de valeur act<63>e 557 BE
5580 Comptes courants 558 BE
5581 Ch<43>ques <20>mis (-) 558 BE
5589 R<>duction de valeur act<63>e 558 BE
5590 Comptes courants 559 BE
5591 Ch<43>ques <20>mis (-) 559 BE
5599 R<>duction de valeur act<63>e 559 BE
56 Office des ch<63>ques postaux 5 BE
560 Compte courant 56 BE
561 Ch<43>ques <20>mis 56 BE
578 Caisse timbre 57 BE
58 Virement interne 5 BE
60 Approvisionnement et marchandises 6 BE
600 Achats de mati<74>res premi<6D>res 60 BE
601 Achats de fournitures 60 BE
602 Achats de services, travaux et <20>tudes 60 BE
603 Sous-traitances g<>n<EFBFBD>rales 60 BE
604 Achats de marchandises 60 BE
605 Achats d'immeubles destin<EFBFBD>s <EFBFBD> la vente 60 BE
608 Remises, ristournes et rabais obtenus(-) 60 BE
609 Variation de stock 60 BE
6090 de mati<EFBFBD>res premi<EFBFBD>res 609 BE
6091 de fournitures 609 BE
6094 de marchandises 609 BE
6095 immeubles achet<EFBFBD>s destin<EFBFBD>s <EFBFBD> la vente 609 BE
61 Services et biens divers 6 BE
62 R<EFBFBD>mun<EFBFBD>rations, charges sociales et pensions 6 BE
620 R<EFBFBD>mun<EFBFBD>rations et avantages sociaux directs 62 BE
6200 Administrateurs ou g<EFBFBD>rants 620 BE
6201 Personnel de directions 620 BE
6202 Employ<EFBFBD>s,620 6202 BE
6203 Ouvriers 620 BE
6204 Autres membres du personnel 620 BE
621 Cotisations patronales d'assurances sociales 62 BE
622 Primes partonales pour assurances extra-l<>gales 62 BE
623 Autres frais de personnel 62 BE
624 Pensions de retraite et de survie 62 BE
6240 Administrateurs ou g<>rants 624 BE
6241 Personnel 624 BE
63 Amortissements, r<>ductions de valeurs et provisions pour risques et charges 6 BE
630 Dotations aux amortissements et r<>duction de valeurs sur immobilisations 63 BE
6300 Dotations aux amortissements sur frais d'<EFBFBD>tablissement 630 BE
705 Ventes et prestations de services 70 BE
6301 Dotations aux amortissements sur immobilisations incorporelles 630 BE
6302 Dotations aux amortissements sur immobilisations corporelles 630 BE
6308 Dotations aux r<EFBFBD>ductions de valeur sur immobilisations incorporelles 630 BE
6309 Dotations aux r<EFBFBD>ductions de valeur sur immobilisations corporelles 630 BE
631 R<EFBFBD>ductions de valeur sur stocks 63 BE
6310 Dotations 631 BE
6311 Reprises(-) 631 BE
632 R<EFBFBD>ductions de valeur sur commande en cours d'<EFBFBD>x<EFBFBD>cution 63 BE
6320 Dotations 632 BE
6321 Reprises(-) 632 BE
633 R<>ductions de valeurs sur cr<63>ances commerciales <20> plus d'un an 63 BE
6330 Dotations 633 BE
6331 Reprises(-) 633 BE
634 R<EFBFBD>ductions de valeur sur cr<EFBFBD>ances commerciales <EFBFBD> un an au plus 63 BE
6340 Dotations 634 BE
6341 Reprise 634 BE
635 Provisions pour pensions et obligations similaires 63 BE
6350 Dotations 635 BE
6351 Utilisation et reprises 635 BE
636 Provisions pour grosses r<EFBFBD>parations et gros entretien 63 BE
6360 Dotations 636 BE
6361 Reprises(-) 636 BE
637 Provisions pour autres risques et charges 63 BE
6370 Dotations 637 BE
6371 Reprises(-) 637 BE
64 Autres charges d'exploitation 6 BE
640 Charges fiscales d'exploitation 64 BE
641 Moins-values sur r<EFBFBD>alisations courantes d'immobilisations corporelles 64 BE
642 Moins-value sur r<>alisation de cr<63>ances commerciales 64 BE
643 Charges d'exploitations 64 BE
644 Charges d'exploitations 64 BE
645 Charges d'exploitations 64 BE
646 Charges d'exploitations 64 BE
647 Charges d'exploitations 64 BE
648 Charges d'exploitations 64 BE
649 Charges d'exploitation port<EFBFBD>es <EFBFBD> l'actif au titre de frais de restructuration(-) 64 BE
65 Charges financi<63>res 6 BE
650 Charges des dettes 65 BE
6500 Int<6E>r<EFBFBD>ts, commmissions et frais aff<66>rents aux dettes 650 BE
6501 Amortissements des frais d'<EFBFBD>missions d'emrunts et des primes de remboursement 650 BE
6502 Autres charges des dettes 650 BE
6503 Int<6E>r<EFBFBD>ts intercalaires port<72>s <20> l'actif(-) 650 BE
651 R<EFBFBD>ductions de valeur sur actifs circulants 65 BE
6510 Dotations 651 BE
6511 Reprises(-) 651 BE
652 Moins-value sur r<EFBFBD>alisation d'actifs circulants 65 BE
653 Charges d'escompte de cr<EFBFBD>ances 65 BE
654 Diff<EFBFBD>rences de changes 65 BE
655 Ecarts de conversion des devises 65 BE
656 Charges financi<EFBFBD>res diverses 65 BE
657 Charges financi<EFBFBD>res diverses 65 BE
658 Charges financi<EFBFBD>res diverses 65 BE
659 Charges financi<EFBFBD>res diverses 65 BE
66 Charges exceptionnelles 6 BE
660 Amortissements et r<EFBFBD>ductions de valeur exceptionnels (dotations) 66 BE
6600 sur frais d'<EFBFBD>tablissement 660 BE
6601 sur immobilisations incorporelles 660 BE
6602 sur immobilisations corporelles 660 BE
661 R<>ductions de valeur sur immobilisations financi<63>res (dotations) 66 BE
662 Provisions pour risques et charges exceptionnels 66 BE
663 Moins-values sur r<>alisations d'actifs immobilis<EFBFBD>s 66 BE
664 Autres charges exceptionnelles 66 BE
665 Autres charges exceptionnelles 66 BE
666 Autres charges exceptionnelles 66 BE
667 Autres charges exceptionnelles 66 BE
668 Autres charges exceptionnelles 66 BE
669 Charges exceptionnelles port<EFBFBD>es <EFBFBD> l'actif au titre de frais de restructuration 66 BE
67 imp<6D>ts sur le r<>sultat 6 BE
670 Imp<6D>ts belge sur le r<>sultat de l'exercice 67 BE
6700 Imp<EFBFBD>ts et pr<EFBFBD>comptes dus ou vers<EFBFBD>s 670 BE
6701 Exc<EFBFBD>dents de versement d'imp<EFBFBD>ts et de pr<70>comptes port<72>s <20> l'actifs (-) 670 BE
6702 Charges fiscales estim<EFBFBD>es 670 BE
671 Imp<EFBFBD>ts belges sur le r<EFBFBD>sultats d'exercices ant<6E>rieures 67 BE
6710 Suppl<70>ments d'imp<EFBFBD>t dus ou vers<EFBFBD>s 671 BE
6711 Suppl<EFBFBD>ments d'imp<EFBFBD>ts estim<69>s 671 BE
6712 Provisions fiscales constitu<74>es 671 BE
672 Imp<6D>ts <20>trangers sur le r<>sultat de l'exercice 67 BE
673 Imp<EFBFBD>ts <EFBFBD>trangers sur le r<EFBFBD>sultat d'exercice ant<6E>rieures 67 BE
68 Transferts aux r<>serves immunis<69>es 6 BE
69 Affectations et pr<70>l<EFBFBD>vements 6 BE
690 Perte report<72>e de l'exercice pr<EFBFBD>c<EFBFBD>dent 69 BE
691 Dotation <EFBFBD> la r<EFBFBD>serve l<EFBFBD>gale 69 BE
692 Dotation aux autres r<EFBFBD>serves 69 BE
693 B<EFBFBD>n<EFBFBD>fice <EFBFBD> reporter 69 BE
694 R<EFBFBD>mun<EFBFBD>ration du capital 69 BE
695 Administrateurs ou g<EFBFBD>rants 69 BE
696 Autres allocataires 69 BE
70 Chiffre d'affaire 7 BE
700 Ventes et prestations de services 70 BE
701 Ventes et prestations de services 70 BE
702 Ventes et prestations de services 70 BE
703 Ventes et prestations de services 70 BE
704 Ventes et prestations de services 70 BE
706 Ventes et prestations de services 70 BE
707 Ventes et prestations de services 70 BE
709 Remises, ristournes et rabais accord<72>s(-) 70 BE
71 Variations des stocks et commandes en cours d'<EFBFBD>x<EFBFBD>cution 7 BE
712 des en-cours de fabrication 71 BE
713 des produits finis 71 BE
715 des immeubles construits destin<EFBFBD>s <EFBFBD> la vente 71 BE
717 des commandes en cours d'<EFBFBD>x<EFBFBD>cution 71 BE
7170 Valeur d'acquisition 717 BE
7171 B<EFBFBD>n<EFBFBD>fice pris en compte 717 BE
72 Production immobilis<EFBFBD>e 7 BE
74 Autres produits d'exploitation 7 BE
740 Subsides d' exploitation et montants compensatoires 74 BE
741 Plus-values sur r<EFBFBD>alisation courantes d' immobilisations corporelles 74 BE
742 Plus-values sur r<>alisations de cr<63>ances commerciales 74 BE
743 Produits d'exploitations divers 74 BE
744 Produits d'exploitations divers 74 BE
745 Produits d'exploitations divers 74 BE
746 Produits d'exploitations divers 74 BE
747 Produits d'exploitations divers 74 BE
748 Produits d'exploitations divers 74 BE
749 Produits d'exploitations divers 74 BE
75 Produits financiers 7 BE
750 Produits sur immobilisations financi<EFBFBD>res 75 BE
751 Produits des actifs circulants 75 BE
752 Plus-value sur r<EFBFBD>alisations d'actis circulants 75 BE
753 Subsides en capital et int<6E>r<EFBFBD>ts 75 BE
754 Diff<66>rences de change 75 BE
755 Ecarts de conversion des devises 75 BE
756 Produits financiers divers 75 BE
757 Produits financiers divers 75 BE
758 Produits financiers divers 75 BE
759 Produits financiers divers 75 BE
76 Produits exceptionnels 7 BE
760 Reprise d'amortissements et de r<EFBFBD>ductions de valeur 76 BE
7601 sur immobilisations corporelles 760 BE
7602 sur immobilisations incorporelles 760 BE
761 Reprises de r<EFBFBD>ductions de valeur sur immobilisations financi<EFBFBD>res 76 BE
762 Reprises de provisions pour risques et charges exceptionnels 76 BE
763 Plus-value sur r<EFBFBD>alisation d'actifs immobilis<69> 76 BE
764 Autres produits exceptionnels 76 BE
765 Autres produits exceptionnels 76 BE
766 Autres produits exceptionnels 76 BE
767 Autres produits exceptionnels 76 BE
768 Autres produits exceptionnels 76 BE
769 Autres produits exceptionnels 76 BE
77 R<>gularisations d'imp<EFBFBD>ts et reprises de provisions fiscales 7 BE
771 imp<EFBFBD>ts belges sur le r<EFBFBD>sultat 77 BE
7710 R<EFBFBD>gularisations d'imp<EFBFBD>ts dus ou vers<72> 771 BE
7711 R<>gularisations d'imp<EFBFBD>ts estim<EFBFBD>s 771 BE
7712 Reprises de provisions fiscales 771 BE
773 Imp<EFBFBD>ts <EFBFBD>trangers sur le r<EFBFBD>sultats 77 BE
79 Affectations et pr<EFBFBD>l<EFBFBD>vements 7 BE
790 B<EFBFBD>n<EFBFBD>fice report<EFBFBD> de l'exercice pr<70>c<EFBFBD>dent 79 BE
791 Pr<50>l<EFBFBD>vement sur le capital et les primes d'<EFBFBD>mission 79 BE
792 Pr<EFBFBD>l<EFBFBD>vement sur les r<EFBFBD>serves 79 BE
793 Perte <EFBFBD> reporter 79 BE
794 Intervention d'associ<EFBFBD>s (ou du propri<72>taire) dans la perte 79 BE
1 Fonds propres, provisions pour risques et charges <20> plus d'un an 0 BE
2 Frais d'<EFBFBD>tablissement, actifs immobilis<69>s et cr<63>ances <20> plus d'un an 0 BE
3 Stocks et commandes en cours d'<EFBFBD>x<EFBFBD>cution 0 BE
4 Cr<43>ances et dettes <20> un an au plus 0 BE
5 Placements de tr<74>sorerie et valeurs disponibles 0 BE
6 Charges 0 BE
7 Produits 0 BE
4000001 Client 1 400 BE
4000002 Client 2 400 BE
4000003 Client 3 400 BE
6040001 Electricit<69> 604 BE
6040002 Loyer 604 BE
6040003 Petit mat<61>riel 604 BE
6040004 Assurance 604 BE
55000001 Caisse 5500 BE
57 Caisse 5 BE
55000002 Banque 1 5500 BE
55000003 Banque 2 5500 BE
4400001 Fournisseur 1 440 BE
4400002 Fournisseur 2 440 BE
4400003 Fournisseur 4 440 BE
610001 Electricit<69> 61 BE
610002 Loyer 61 BE
610003 Assurance 61 BE
610004 Mat<61>riel bureau 61 BE
7000002 Marchandise A 700 BE
7000001 Prestation 700 BE
7000003 D<>placement 700 BE
\.
--
-- Data for TOC entry 96 (OID 23698)
-- Name: version; Type: TABLE DATA; Schema: public; Owner: phpcompta
--
COPY "version" (val) FROM stdin;
3
\.
--
-- Data for TOC entry 97 (OID 23704)
-- Name: parm_money; Type: TABLE DATA; Schema: public; Owner: phpcompta
--
COPY parm_money (pm_id, pm_code, pm_rate) FROM stdin;
1 EUR 1
\.
--
-- Data for TOC entry 98 (OID 23707)
-- Name: parm_periode; Type: TABLE DATA; Schema: public; Owner: phpcompta
--
COPY parm_periode (p_id, p_start, p_end, p_exercice, p_closed) FROM stdin;
1 2003-01-01 2003-01-31 2003 f
2 2003-02-01 2003-02-28 2003 f
3 2003-03-01 2003-03-31 2003 f
4 2003-04-01 2003-04-30 2003 f
5 2003-05-01 2003-05-31 2003 f
6 2003-06-01 2003-06-30 2003 f
7 2003-07-01 2003-07-31 2003 f
8 2003-08-01 2003-08-31 2003 f
9 2003-09-01 2003-09-30 2003 f
10 2003-10-01 2003-10-30 2003 f
11 2003-11-01 2003-11-30 2003 f
12 2003-12-01 2003-12-31 2003 f
13 2003-12-31 \N 2003 f
14 2004-01-01 2004-01-31 2004 f
15 2004-01-02 2004-02-28 2004 f
16 2004-01-03 2004-03-31 2004 f
17 2004-01-04 2004-04-30 2004 f
18 2004-01-05 2004-05-31 2004 f
19 2004-01-06 2004-06-30 2004 f
20 2004-01-07 2004-07-31 2004 f
21 2004-01-08 2004-08-31 2004 f
22 2004-01-09 2004-09-30 2004 f
23 2004-01-10 2004-10-30 2004 f
24 2004-01-11 2004-11-30 2004 f
25 2004-01-12 2004-12-31 2004 f
26 2004-12-31 \N 2004 f
28 2004-02-01 2004-02-28 2004 f
29 2004-03-01 2004-03-31 2004 f
30 2004-04-01 2004-04-30 2004 f
31 2004-05-01 2004-05-31 2004 f
32 2004-06-01 2004-06-30 2004 f
33 2004-07-01 2004-07-31 2004 f
34 2004-08-01 2004-08-31 2004 f
35 2004-09-01 2004-09-30 2004 f
36 2004-10-01 2004-10-30 2004 f
37 2004-11-01 2004-11-30 2004 f
38 2004-12-01 2004-12-31 2004 f
\.
--
-- Data for TOC entry 99 (OID 23723)
-- Name: jrn_type; Type: TABLE DATA; Schema: public; Owner: phpcompta
--
COPY jrn_type (jrn_type_id, jrn_desc) FROM stdin;
FIN Financier
VEN Vente
ACH Achat
OD Op<4F>rations Diverses
\.
--
-- Data for TOC entry 100 (OID 23728)
-- Name: jrn_def; Type: TABLE DATA; Schema: public; Owner: phpcompta
--
COPY jrn_def (jrn_def_id, jrn_def_name, jrn_def_class_deb, jrn_def_class_cred, jrn_def_fiche_deb, jrn_def_fiche_cred, jrn_deb_max_line, jrn_cred_max_line, jrn_def_ech, jrn_def_ech_lib, jrn_def_type, jrn_def_code) FROM stdin;
4 Op<4F>ration Diverses \N \N \N \N 5 5 f \N OD OD-01
1 Financier 5* 5* 3,2,4 3,2,4 5 5 f \N FIN FIN-01
3 Achat 6* 4* 5 4 1 3 t <09>ch<63>ance ACH ACH-01
2 Vente 4* 7* 2 6 2 1 t <09>ch<63>ance VEN VEN-01
\.
--
-- Data for TOC entry 101 (OID 23739)
-- Name: jrn; Type: TABLE DATA; Schema: public; Owner: phpcompta
--
COPY jrn (jr_id, jr_def_id, jr_montant, jr_comment, jr_date, jr_grpt_id, jr_internal, jr_tech_date, jr_tech_per, jrn_ech, jr_ech, jr_rapt) FROM stdin;
\.
--
-- Data for TOC entry 102 (OID 23746)
-- Name: jrnx; Type: TABLE DATA; Schema: public; Owner: phpcompta
--
COPY jrnx (j_id, j_date, j_montant, j_poste, j_grpt, j_rapt, j_jrn_def, j_debit, j_text, j_centralized, j_internal, j_tech_user, j_tech_date, j_tech_per) FROM stdin;
\.
--
-- Data for TOC entry 103 (OID 23757)
-- Name: user_pref; Type: TABLE DATA; Schema: public; Owner: phpcompta
--
COPY user_pref (pref_user, pref_periode) FROM stdin;
dany 30
\.
--
-- Data for TOC entry 104 (OID 23766)
-- Name: formdef; Type: TABLE DATA; Schema: public; Owner: phpcompta
--
COPY formdef (fr_id, fr_label) FROM stdin;
\.
--
-- Data for TOC entry 105 (OID 23772)
-- Name: form; Type: TABLE DATA; Schema: public; Owner: phpcompta
--
COPY form (fo_id, fo_fr_id, fo_pos, fo_label, fo_formula) FROM stdin;
\.
--
-- Data for TOC entry 106 (OID 23784)
-- Name: centralized; Type: TABLE DATA; Schema: public; Owner: phpcompta
--
COPY centralized (c_id, c_j_id, c_date, c_internal, c_montant, c_debit, c_jrn_def, c_poste, c_description, c_grp, c_comment, c_rapt, c_periode) FROM stdin;
\.
--
-- Data for TOC entry 107 (OID 23795)
-- Name: user_sec_jrn; Type: TABLE DATA; Schema: public; Owner: phpcompta
--
COPY user_sec_jrn (uj_id, uj_login, uj_jrn_id, uj_priv) FROM stdin;
\.
--
-- Data for TOC entry 108 (OID 23801)
-- Name: action; Type: TABLE DATA; Schema: public; Owner: phpcompta
--
COPY "action" (ac_id, ac_description) FROM stdin;
1 Journaux
2 Facturation
3 Fiche
4 Impression
5 Formulaire
6 Mise <20> jour Plan Comptable
7 Gestion Journaux
8 Param<61>tres
9 S<>curit<69>
10 Centralise
\.
--
-- Data for TOC entry 109 (OID 23806)
-- Name: user_sec_act; Type: TABLE DATA; Schema: public; Owner: phpcompta
--
COPY user_sec_act (ua_id, ua_login, ua_act_id) FROM stdin;
\.
--
-- Data for TOC entry 110 (OID 23814)
-- Name: jrn_action; Type: TABLE DATA; Schema: public; Owner: phpcompta
--
COPY jrn_action (ja_id, ja_name, ja_desc, ja_url, ja_action, ja_lang, ja_jrn_type) FROM stdin;
2 Voir Voir toutes les factures user_jrn.php action=voir_jrn FR VEN
4 Voir Impay<61>s Voir toutes les factures non pay<61>es user_jrn.php action=voir_jrn_non_paye FR VEN
6 Recherche Recherche dans le journal user_jrn.php action=search FR VEN
1 Nouvelle Cr<43>ation d'une facture user_jrn.php action=insert_vente&blank FR VEN
5 Impression Impression du journal impress.php filter=1&action=viewpdf&type=jrn FR VEN
10 Nouveau Encode un nouvel achat (mat<EFBFBD>riel, marchandises, services et biens divers) user_jrn.php action=new&blank FR ACH
12 Voir Voir toutes les factures user_jrn.php action=voir_jrn FR ACH
14 Voir Impay<EFBFBD>s Voir toutes les factures non pay<EFBFBD>es user_jrn.php action=voir_jrn_non_paye FR ACH
16 Impression Impression du journal impress.php filter=1&action=viewpdf&type=jrn FR ACH
18 Recherche Recherche dans le journal user_jrn.php action=search FR ACH
20 Nouveau Encode un nouvel achat (mat<EFBFBD>riel, marchandises, services et biens divers) user_jrn.php action=new&blank FR FIN
22 Voir Voir toutes les factures user_jrn.php action=voir_jrn FR FIN
24 Impression Impression du journal impress.php filter=1&action=viewpdf&type=jrn FR FIN
26 Recherche Recherche dans le journal user_jrn.php action=search FR FIN
30 Nouveau \N user_jrn.php action=new&blank FR OD
32 Voir Voir toutes les factures user_jrn.php action=voir_jrn FR OD
34 Impression Impression du journal impress.php filter=1&action=viewpdf&type=jrn FR OD
36 Recherche Recherche dans le journal user_jrn.php action=search FR OD
\.
--
-- Data for TOC entry 111 (OID 23821)
-- Name: fiche_ref_def; Type: TABLE DATA; Schema: public; Owner: phpcompta
--
COPY fiche_ref_def (frd_id, frd_text) FROM stdin;
\.
--
-- Data for TOC entry 112 (OID 23826)
-- Name: attr_valeur; Type: TABLE DATA; Schema: public; Owner: phpcompta
--
COPY attr_valeur (f_id, ad_id, av_text) FROM stdin;
\.
--
-- Data for TOC entry 113 (OID 23831)
-- Name: jnt_fic_def_att_def; Type: TABLE DATA; Schema: public; Owner: phpcompta
--
COPY jnt_fic_def_att_def (fd_id, ad_id) FROM stdin;
\.
--
-- Data for TOC entry 114 (OID 24630)
-- Name: tva_rate; Type: TABLE DATA; Schema: public; Owner: phpcompta
--
COPY tva_rate (tva_id, tva_label, tva_rate, tva_comment, tva_poste) FROM stdin;
1 21% 0.21 Tva applicable <EFBFBD> tout ce qui bien et service divers 411,451
3 0% 0 Tva applicable lors de vente/achat intracommunautaire 411,451
2 6% 0.06 Tva applicable aux journaux et livres 411,451
4 12% 0.12 Tva 411,451
\.
--
-- Data for TOC entry 115 (OID 24650)
-- Name: fiche_def_ref; Type: TABLE DATA; Schema: public; Owner: phpcompta
--
COPY fiche_def_ref (frd_id, frd_text, frd_class_base) FROM stdin;
1 Vente Service 700
2 Achat Marchandises 604
3 Achat Service et biens divers 61
4 Banque 5500
5 Pr<EFBFBD>t > a un an 17
6 Pr<EFBFBD>t < a un an 430
8 Fournisseurs 440
9 Clients 400
10 Salaire Administrateur 6200
11 Salaire Ouvrier 6203
12 Salaire Employ<EFBFBD> 6202
13 D<EFBFBD>penses non admises 674
7 Mat<EFBFBD>riel <EFBFBD> amortir 24
14 Administration des Finances \N
\.
--
-- Data for TOC entry 116 (OID 24658)
-- Name: fiche_def; Type: TABLE DATA; Schema: public; Owner: phpcompta
--
COPY fiche_def (fd_id, fd_class_base, fd_label, fd_create_account, frd_id) FROM stdin;
2 400 Client t 9
1 604 Marchandises t 2
3 5500 Banque t 4
4 440 Fournisseur t 8
5 61 S & B D t 3
6 700 Vente t 1
\.
--
-- Data for TOC entry 117 (OID 24680)
-- Name: attr_def; Type: TABLE DATA; Schema: public; Owner: phpcompta
--
COPY attr_def (ad_id, ad_text) FROM stdin;
1 Nom
2 Taux TVA
3 Num<EFBFBD>ro de compte
4 Nom de la banque
5 Poste Comptable
6 Prix vente
7 Prix achat
8 Dur<EFBFBD>e Amortissement
9 Description
10 Date d<EFBFBD>but
11 Montant initial
12 Personne de contact
13 num<EFBFBD>ro de tva
14 Adresse
15 code postale
16 pays
17 t<EFBFBD>l<EFBFBD>phone
18 email
19 Gestion stock
\.
--
-- Data for TOC entry 118 (OID 24688)
-- Name: attr_min; Type: TABLE DATA; Schema: public; Owner: phpcompta
--
COPY attr_min (frd_id, ad_id) FROM stdin;
1 1
1 2
2 1
2 2
3 1
3 2
4 1
4 3
4 4
4 12
4 13
4 14
4 15
4 16
4 17
4 18
8 1
8 12
8 13
8 14
8 15
8 16
8 17
8 18
9 1
9 12
9 13
9 14
9 15
9 16
9 17
9 18
1 6
1 7
2 6
2 7
3 7
1 19
2 19
14 1
\.
--
-- Data for TOC entry 119 (OID 24698)
-- Name: fiche; Type: TABLE DATA; Schema: public; Owner: phpcompta
--
COPY fiche (f_id, fd_id) FROM stdin;
1 1
2 1
3 1
4 1
5 2
6 2
7 2
8 3
9 3
10 3
11 4
12 4
13 4
14 5
15 5
16 5
17 5
18 6
19 6
20 6
\.
--
-- Data for TOC entry 120 (OID 24707)
-- Name: jnt_fic_att_value; Type: TABLE DATA; Schema: public; Owner: phpcompta
--
COPY jnt_fic_att_value (jft_id, f_id, ad_id) FROM stdin;
1 1 5
2 1 1
3 1 2
4 1 6
5 1 7
6 1 19
7 2 5
8 2 1
9 2 2
10 2 6
11 2 7
12 2 19
13 3 5
14 3 1
15 3 2
16 3 6
17 3 7
18 3 19
19 4 5
20 4 1
21 4 2
22 4 6
23 4 7
24 4 19
25 5 5
26 5 1
27 5 12
28 5 13
29 5 14
30 5 15
31 5 16
32 5 17
33 5 18
34 6 5
35 6 1
36 6 12
37 6 13
38 6 14
39 6 15
40 6 16
41 6 17
42 6 18
43 7 5
44 7 1
45 7 12
46 7 13
47 7 14
48 7 15
49 7 16
50 7 17
51 7 18
52 8 5
53 8 1
54 8 3
55 8 4
56 8 12
57 8 13
58 8 14
59 8 15
60 8 16
61 8 17
62 8 18
63 9 5
64 9 1
65 9 3
66 9 4
67 9 12
68 9 13
69 9 14
70 9 15
71 9 16
72 9 17
73 9 18
74 10 5
75 10 1
76 10 3
77 10 4
78 10 12
79 10 13
80 10 14
81 10 15
82 10 16
83 10 17
84 10 18
85 11 5
86 11 1
87 11 12
88 11 13
89 11 14
90 11 15
91 11 16
92 11 17
93 11 18
94 12 5
95 12 1
96 12 12
97 12 13
98 12 14
99 12 15
100 12 16
101 12 17
102 12 18
103 13 5
104 13 1
105 13 12
106 13 13
107 13 14
108 13 15
109 13 16
110 13 17
111 13 18
112 14 5
113 14 1
114 14 2
115 14 7
116 15 5
117 15 1
118 15 2
119 15 7
120 16 5
121 16 1
122 16 2
123 16 7
124 17 5
125 17 1
126 17 2
127 17 7
128 18 5
129 18 1
130 18 2
131 18 6
132 18 7
133 18 19
134 19 5
135 19 1
136 19 2
137 19 6
138 19 7
139 19 19
140 20 5
141 20 1
142 20 2
143 20 6
144 20 7
145 20 19
\.
--
-- Data for TOC entry 121 (OID 24720)
-- Name: attr_value; Type: TABLE DATA; Schema: public; Owner: phpcompta
--
COPY attr_value (jft_id, av_text) FROM stdin;
25 4000001
26 Client 1
27
28
29
30
31
32
33
34 4000002
35 Client 2
36
37
38
39
40
41
42
43 4000003
44 Client 3
45
46
47
48
49
50
51
2 Marchandise A
3 1
1 6040001
4
5
6
8 Marchandise B
9 3
7 6040002
10
11
12
14 Marchandise C
15 1
13 6040003
16
17
18
20 Marchandise D
21 3
19 6040004
22
23
24
53 Caisse
54
55
52 57
56
57
58
59
60
61
62
63 55000002
64 Banque 1
65
66
67
68
69
70
71
72
73
74 55000003
75 Banque 2
76
77
78
79
80
81
82
83
84
85 4400001
86 Fournisseur 1
87
88
89
90
91
92
93
94 4400002
95 Fournisseur 2
96
97
98
99
100
101
102
103 4400003
104 Fournisseur 4
105
106
107
108
109
110
111
112 610001
113 Electricit<EFBFBD>
114 1
115
117 Loyer
118 3
116 610002
119
121 Assurance
122 3
120 610003
123
124 610004
125 Mat<EFBFBD>riel bureau
126 1
127
134 7000002
135 Marchandise A
136
137 200
138
139
129 Prestation
130 1
128 7000001
131 15
132
133
140 7000003
141 D<EFBFBD>placement
142
143 50
144
145
\.
--
-- Data for TOC entry 122 (OID 24729)
-- Name: jnt_fic_attr; Type: TABLE DATA; Schema: public; Owner: phpcompta
--
COPY jnt_fic_attr (fd_id, ad_id) FROM stdin;
1 5
1 1
1 2
1 6
1 7
1 19
2 5
2 1
2 12
2 13
2 14
2 15
2 16
2 17
2 18
3 5
3 1
3 3
3 4
3 12
3 13
3 14
3 15
3 16
3 17
3 18
4 5
4 1
4 12
4 13
4 14
4 15
4 16
4 17
4 18
5 5
5 1
5 2
5 7
6 5
6 1
6 2
6 6
6 7
6 19
\.
--
-- TOC entry 87 (OID 24492)
-- Name: x_act; Type: INDEX; Schema: public; Owner: phpcompta
--
CREATE UNIQUE INDEX x_act ON "action" USING btree (ac_description);
--
-- TOC entry 85 (OID 24493)
-- Name: x_usr_jrn; Type: INDEX; Schema: public; Owner: phpcompta
--
CREATE UNIQUE INDEX x_usr_jrn ON user_sec_jrn USING btree (uj_login, uj_jrn_id);
--
-- TOC entry 71 (OID 24494)
-- Name: tmp_pcmn_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY tmp_pcmn
ADD CONSTRAINT tmp_pcmn_pkey PRIMARY KEY (pcm_val);
--
-- TOC entry 72 (OID 24496)
-- Name: parm_money_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY parm_money
ADD CONSTRAINT parm_money_pkey PRIMARY KEY (pm_code);
--
-- TOC entry 74 (OID 24498)
-- Name: parm_periode_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY parm_periode
ADD CONSTRAINT parm_periode_pkey PRIMARY KEY (p_id);
--
-- TOC entry 73 (OID 24500)
-- Name: parm_periode_p_start_key; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY parm_periode
ADD CONSTRAINT parm_periode_p_start_key UNIQUE (p_start);
--
-- TOC entry 75 (OID 24502)
-- Name: jrn_type_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY jrn_type
ADD CONSTRAINT jrn_type_pkey PRIMARY KEY (jrn_type_id);
--
-- TOC entry 77 (OID 24504)
-- Name: jrn_def_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY jrn_def
ADD CONSTRAINT jrn_def_pkey PRIMARY KEY (jrn_def_id);
--
-- TOC entry 76 (OID 24506)
-- Name: jrn_def_jrn_def_name_key; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY jrn_def
ADD CONSTRAINT jrn_def_jrn_def_name_key UNIQUE (jrn_def_name);
--
-- TOC entry 123 (OID 24508)
-- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY jrn_def
ADD CONSTRAINT "$1" FOREIGN KEY (jrn_def_type) REFERENCES jrn_type(jrn_type_id) ON UPDATE NO ACTION ON DELETE NO ACTION;
--
-- TOC entry 124 (OID 24512)
-- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY jrn
ADD CONSTRAINT "$1" FOREIGN KEY (jr_def_id) REFERENCES jrn_def(jrn_def_id) ON UPDATE NO ACTION ON DELETE NO ACTION;
--
-- TOC entry 78 (OID 24516)
-- Name: jrn_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY jrn
ADD CONSTRAINT jrn_pkey PRIMARY KEY (jr_id, jr_def_id);
--
-- TOC entry 79 (OID 24518)
-- Name: jrnx_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY jrnx
ADD CONSTRAINT jrnx_pkey PRIMARY KEY (j_id);
--
-- TOC entry 125 (OID 24520)
-- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY jrnx
ADD CONSTRAINT "$1" FOREIGN KEY (j_poste) REFERENCES tmp_pcmn(pcm_val) ON UPDATE NO ACTION ON DELETE NO ACTION;
--
-- TOC entry 126 (OID 24524)
-- Name: $2; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY jrnx
ADD CONSTRAINT "$2" FOREIGN KEY (j_jrn_def) REFERENCES jrn_def(jrn_def_id) ON UPDATE NO ACTION ON DELETE NO ACTION;
--
-- TOC entry 80 (OID 24528)
-- Name: user_pref_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY user_pref
ADD CONSTRAINT user_pref_pkey PRIMARY KEY (pref_user);
--
-- TOC entry 81 (OID 24530)
-- Name: formdef_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY formdef
ADD CONSTRAINT formdef_pkey PRIMARY KEY (fr_id);
--
-- TOC entry 82 (OID 24532)
-- Name: form_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY form
ADD CONSTRAINT form_pkey PRIMARY KEY (fo_id);
--
-- TOC entry 127 (OID 24534)
-- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY form
ADD CONSTRAINT "$1" FOREIGN KEY (fo_fr_id) REFERENCES formdef(fr_id) ON UPDATE NO ACTION ON DELETE NO ACTION;
--
-- TOC entry 83 (OID 24538)
-- Name: centralized_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY centralized
ADD CONSTRAINT centralized_pkey PRIMARY KEY (c_id);
--
-- TOC entry 128 (OID 24540)
-- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY centralized
ADD CONSTRAINT "$1" FOREIGN KEY (c_jrn_def) REFERENCES jrn_def(jrn_def_id) ON UPDATE NO ACTION ON DELETE NO ACTION;
--
-- TOC entry 129 (OID 24544)
-- Name: $2; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY centralized
ADD CONSTRAINT "$2" FOREIGN KEY (c_poste) REFERENCES tmp_pcmn(pcm_val) ON UPDATE NO ACTION ON DELETE NO ACTION;
--
-- TOC entry 84 (OID 24548)
-- Name: user_sec_jrn_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY user_sec_jrn
ADD CONSTRAINT user_sec_jrn_pkey PRIMARY KEY (uj_id);
--
-- TOC entry 130 (OID 24550)
-- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY user_sec_jrn
ADD CONSTRAINT "$1" FOREIGN KEY (uj_jrn_id) REFERENCES jrn_def(jrn_def_id) ON UPDATE NO ACTION ON DELETE NO ACTION;
--
-- TOC entry 86 (OID 24554)
-- Name: action_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY "action"
ADD CONSTRAINT action_pkey PRIMARY KEY (ac_id);
--
-- TOC entry 88 (OID 24556)
-- Name: user_sec_act_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY user_sec_act
ADD CONSTRAINT user_sec_act_pkey PRIMARY KEY (ua_id);
--
-- TOC entry 131 (OID 24558)
-- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY user_sec_act
ADD CONSTRAINT "$1" FOREIGN KEY (ua_act_id) REFERENCES "action"(ac_id) ON UPDATE NO ACTION ON DELETE NO ACTION;
--
-- TOC entry 89 (OID 24562)
-- Name: jrn_action_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY jrn_action
ADD CONSTRAINT jrn_action_pkey PRIMARY KEY (ja_id);
--
-- TOC entry 132 (OID 24564)
-- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY jrn_action
ADD CONSTRAINT "$1" FOREIGN KEY (ja_jrn_type) REFERENCES jrn_type(jrn_type_id) ON UPDATE NO ACTION ON DELETE NO ACTION;
--
-- TOC entry 90 (OID 24656)
-- Name: fiche_def_ref_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY fiche_def_ref
ADD CONSTRAINT fiche_def_ref_pkey PRIMARY KEY (frd_id);
--
-- TOC entry 91 (OID 24665)
-- Name: fiche_def_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY fiche_def
ADD CONSTRAINT fiche_def_pkey PRIMARY KEY (fd_id);
--
-- TOC entry 133 (OID 24667)
-- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY fiche_def
ADD CONSTRAINT "$1" FOREIGN KEY (frd_id) REFERENCES fiche_def_ref(frd_id) ON UPDATE NO ACTION ON DELETE NO ACTION;
--
-- TOC entry 92 (OID 24686)
-- Name: attr_def_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY attr_def
ADD CONSTRAINT attr_def_pkey PRIMARY KEY (ad_id);
--
-- TOC entry 134 (OID 24690)
-- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY attr_min
ADD CONSTRAINT "$1" FOREIGN KEY (frd_id) REFERENCES fiche_def_ref(frd_id) ON UPDATE NO ACTION ON DELETE NO ACTION;
--
-- TOC entry 135 (OID 24694)
-- Name: $2; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY attr_min
ADD CONSTRAINT "$2" FOREIGN KEY (ad_id) REFERENCES attr_def(ad_id) ON UPDATE NO ACTION ON DELETE NO ACTION;
--
-- TOC entry 93 (OID 24701)
-- Name: fiche_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY fiche
ADD CONSTRAINT fiche_pkey PRIMARY KEY (f_id);
--
-- TOC entry 136 (OID 24703)
-- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY fiche
ADD CONSTRAINT "$1" FOREIGN KEY (fd_id) REFERENCES fiche_def(fd_id) ON UPDATE NO ACTION ON DELETE NO ACTION;
--
-- TOC entry 94 (OID 24710)
-- Name: jnt_fic_att_value_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY jnt_fic_att_value
ADD CONSTRAINT jnt_fic_att_value_pkey PRIMARY KEY (jft_id);
--
-- TOC entry 137 (OID 24712)
-- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY jnt_fic_att_value
ADD CONSTRAINT "$1" FOREIGN KEY (f_id) REFERENCES fiche(f_id) ON UPDATE NO ACTION ON DELETE NO ACTION;
--
-- TOC entry 138 (OID 24716)
-- Name: $2; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY jnt_fic_att_value
ADD CONSTRAINT "$2" FOREIGN KEY (ad_id) REFERENCES attr_def(ad_id) ON UPDATE NO ACTION ON DELETE NO ACTION;
--
-- TOC entry 139 (OID 24725)
-- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY attr_value
ADD CONSTRAINT "$1" FOREIGN KEY (jft_id) REFERENCES jnt_fic_att_value(jft_id) ON UPDATE NO ACTION ON DELETE NO ACTION;
--
-- TOC entry 140 (OID 24731)
-- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY jnt_fic_attr
ADD CONSTRAINT "$1" FOREIGN KEY (fd_id) REFERENCES fiche_def(fd_id) ON UPDATE NO ACTION ON DELETE NO ACTION;
--
-- TOC entry 141 (OID 24735)
-- Name: $2; Type: CONSTRAINT; Schema: public; Owner: phpcompta
--
ALTER TABLE ONLY jnt_fic_attr
ADD CONSTRAINT "$2" FOREIGN KEY (ad_id) REFERENCES attr_def(ad_id) ON UPDATE NO ACTION ON DELETE NO ACTION;
--
-- TOC entry 3 (OID 23700)
-- Name: s_periode; Type: SEQUENCE SET; Schema: public; Owner: phpcompta
--
SELECT pg_catalog.setval ('s_periode', 39, true);
--
-- TOC entry 5 (OID 23702)
-- Name: s_currency; Type: SEQUENCE SET; Schema: public; Owner: phpcompta
--
SELECT pg_catalog.setval ('s_currency', 1, true);
--
-- TOC entry 7 (OID 23715)
-- Name: s_jrn_def; Type: SEQUENCE SET; Schema: public; Owner: phpcompta
--
SELECT pg_catalog.setval ('s_jrn_def', 5, false);
--
-- TOC entry 9 (OID 23717)
-- Name: s_grpt; Type: SEQUENCE SET; Schema: public; Owner: phpcompta
--
SELECT pg_catalog.setval ('s_grpt', 1, false);
--
-- TOC entry 11 (OID 23719)
-- Name: s_jrn_op; Type: SEQUENCE SET; Schema: public; Owner: phpcompta
--
SELECT pg_catalog.setval ('s_jrn_op', 1, false);
--
-- TOC entry 13 (OID 23721)
-- Name: s_jrn; Type: SEQUENCE SET; Schema: public; Owner: phpcompta
--
SELECT pg_catalog.setval ('s_jrn', 1, false);
--
-- TOC entry 15 (OID 23737)
-- Name: s_jrnx; Type: SEQUENCE SET; Schema: public; Owner: phpcompta
--
SELECT pg_catalog.setval ('s_jrnx', 1, false);
--
-- TOC entry 17 (OID 23762)
-- Name: s_formdef; Type: SEQUENCE SET; Schema: public; Owner: phpcompta
--
SELECT pg_catalog.setval ('s_formdef', 1, false);
--
-- TOC entry 19 (OID 23764)
-- Name: s_form; Type: SEQUENCE SET; Schema: public; Owner: phpcompta
--
SELECT pg_catalog.setval ('s_form', 1, false);
--
-- TOC entry 21 (OID 23778)
-- Name: s_isup; Type: SEQUENCE SET; Schema: public; Owner: phpcompta
--
SELECT pg_catalog.setval ('s_isup', 1, false);
--
-- TOC entry 23 (OID 23780)
-- Name: s_idef; Type: SEQUENCE SET; Schema: public; Owner: phpcompta
--
SELECT pg_catalog.setval ('s_idef', 1, false);
--
-- TOC entry 25 (OID 23782)
-- Name: s_centralized; Type: SEQUENCE SET; Schema: public; Owner: phpcompta
--
SELECT pg_catalog.setval ('s_centralized', 1, false);
--
-- TOC entry 27 (OID 23791)
-- Name: s_user_jrn; Type: SEQUENCE SET; Schema: public; Owner: phpcompta
--
SELECT pg_catalog.setval ('s_user_jrn', 1, false);
--
-- TOC entry 29 (OID 23793)
-- Name: s_user_act; Type: SEQUENCE SET; Schema: public; Owner: phpcompta
--
SELECT pg_catalog.setval ('s_user_act', 1, false);
--
-- TOC entry 31 (OID 23812)
-- Name: s_jrnaction; Type: SEQUENCE SET; Schema: public; Owner: phpcompta
--
SELECT pg_catalog.setval ('s_jrnaction', 5, true);
--
-- TOC entry 33 (OID 24640)
-- Name: s_fiche; Type: SEQUENCE SET; Schema: public; Owner: phpcompta
--
SELECT pg_catalog.setval ('s_fiche', 20, true);
--
-- TOC entry 35 (OID 24642)
-- Name: s_fiche_def_ref; Type: SEQUENCE SET; Schema: public; Owner: phpcompta
--
SELECT pg_catalog.setval ('s_fiche_def_ref', 1, false);
--
-- TOC entry 37 (OID 24644)
-- Name: s_fdef; Type: SEQUENCE SET; Schema: public; Owner: phpcompta
--
SELECT pg_catalog.setval ('s_fdef', 6, true);
--
-- TOC entry 39 (OID 24646)
-- Name: s_attr_def; Type: SEQUENCE SET; Schema: public; Owner: phpcompta
--
SELECT pg_catalog.setval ('s_attr_def', 1, false);
--
-- TOC entry 41 (OID 24648)
-- Name: s_jnt_fic_att_value; Type: SEQUENCE SET; Schema: public; Owner: phpcompta
--
SELECT pg_catalog.setval ('s_jnt_fic_att_value', 145, true);