moved all sql but 'log' into html base directory
This commit is contained in:
parent
74595a4005
commit
fc530daa2b
39 changed files with 0 additions and 10905 deletions
|
|
@ -1,15 +0,0 @@
|
|||
-- Table: public.ac_dossier
|
||||
|
||||
-- DROP TABLE public.ac_dossier;
|
||||
|
||||
CREATE TABLE public.ac_dossier
|
||||
(
|
||||
dos_id int4 NOT NULL DEFAULT nextval('dossier_id'::text),
|
||||
dos_name text NOT NULL,
|
||||
dos_description text,
|
||||
dos_jnt_user int4 DEFAULT 0,
|
||||
CONSTRAINT ac_dossier_pkey PRIMARY KEY (dos_id),
|
||||
CONSTRAINT ac_dossier_dos_name_key UNIQUE (dos_name)
|
||||
) WITH OIDS;
|
||||
|
||||
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
-- Table: public.ac_users
|
||||
|
||||
-- DROP TABLE public.ac_users;
|
||||
|
||||
CREATE TABLE public.ac_users
|
||||
(
|
||||
use_id int4 NOT NULL DEFAULT nextval('users_id'::text),
|
||||
use_first_name text,
|
||||
use_name text,
|
||||
use_login text NOT NULL,
|
||||
use_active int4 DEFAULT 0,
|
||||
use_pass text,
|
||||
use_admin int4 DEFAULT 0,
|
||||
use_theme text DEFAULT 'Light',
|
||||
use_usertype text NOT NULL,
|
||||
CONSTRAINT ac_users_pkey PRIMARY KEY (use_id),
|
||||
CONSTRAINT ac_users_use_login_key UNIQUE (use_login),
|
||||
CONSTRAINT "$1" CHECK ((use_active = 0) OR (use_active = 1))
|
||||
) WITH OIDS;
|
||||
|
||||
|
||||
|
|
@ -1,366 +0,0 @@
|
|||
--
|
||||
-- PostgreSQL database dump
|
||||
--
|
||||
|
||||
\connect - phpcompta
|
||||
|
||||
SET search_path = public, pg_catalog;
|
||||
|
||||
--
|
||||
-- TOC entry 2 (OID 44864)
|
||||
-- Name: users_id; Type: SEQUENCE; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
CREATE SEQUENCE users_id
|
||||
START 1
|
||||
INCREMENT 1
|
||||
MAXVALUE 9223372036854775807
|
||||
MINVALUE 1
|
||||
CACHE 1;
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 12 (OID 44866)
|
||||
-- Name: ac_users; Type: TABLE; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
CREATE TABLE ac_users (
|
||||
use_id integer DEFAULT nextval('users_id'::text) NOT NULL,
|
||||
use_first_name text,
|
||||
use_name text,
|
||||
use_login text NOT NULL,
|
||||
use_active integer DEFAULT 0,
|
||||
use_pass text,
|
||||
use_admin integer DEFAULT 0,
|
||||
use_theme text DEFAULT 'Light',
|
||||
use_usertype text NOT NULL,
|
||||
CHECK (((use_active = 0) OR (use_active = 1)))
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 13 (OID 44876)
|
||||
-- Name: ac_dossier; Type: TABLE; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
CREATE TABLE ac_dossier (
|
||||
dos_id integer DEFAULT nextval('dossier_id'::text) NOT NULL,
|
||||
dos_name text NOT NULL,
|
||||
dos_description text,
|
||||
dos_jnt_user integer DEFAULT 0
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 4 (OID 44883)
|
||||
-- Name: seq_jnt_use_dos; Type: SEQUENCE; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
CREATE SEQUENCE seq_jnt_use_dos
|
||||
START 1
|
||||
INCREMENT 1
|
||||
MAXVALUE 9223372036854775807
|
||||
MINVALUE 1
|
||||
CACHE 1;
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 14 (OID 44885)
|
||||
-- Name: jnt_use_dos; Type: TABLE; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
CREATE TABLE jnt_use_dos (
|
||||
jnt_id integer DEFAULT nextval('seq_jnt_use_dos'::text) NOT NULL,
|
||||
use_id integer NOT NULL,
|
||||
dos_id integer NOT NULL
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 15 (OID 44888)
|
||||
-- Name: version; Type: TABLE; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
CREATE TABLE "version" (
|
||||
val integer
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 6 (OID 44890)
|
||||
-- Name: seq_priv_user; Type: SEQUENCE; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
CREATE SEQUENCE seq_priv_user
|
||||
START 1
|
||||
INCREMENT 1
|
||||
MAXVALUE 9223372036854775807
|
||||
MINVALUE 1
|
||||
CACHE 1;
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 16 (OID 44892)
|
||||
-- Name: priv_user; Type: TABLE; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
CREATE TABLE priv_user (
|
||||
priv_id integer DEFAULT nextval('seq_priv_user'::text) NOT NULL,
|
||||
priv_jnt integer NOT NULL,
|
||||
priv_priv text
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 17 (OID 44898)
|
||||
-- Name: theme; Type: TABLE; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
CREATE TABLE theme (
|
||||
the_name text NOT NULL,
|
||||
the_filestyle text,
|
||||
the_filebutton text
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 8 (OID 44903)
|
||||
-- Name: s_modid; Type: SEQUENCE; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
CREATE SEQUENCE s_modid
|
||||
START 1
|
||||
INCREMENT 1
|
||||
MAXVALUE 9223372036854775807
|
||||
MINVALUE 1
|
||||
CACHE 1;
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 18 (OID 44905)
|
||||
-- Name: modeledef; Type: TABLE; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
CREATE TABLE modeledef (
|
||||
mod_id integer DEFAULT nextval('s_modid'::text) NOT NULL,
|
||||
mod_name text NOT NULL,
|
||||
mod_desc text
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 10 (OID 44911)
|
||||
-- Name: dossier_id; Type: SEQUENCE; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
CREATE SEQUENCE dossier_id
|
||||
START 3
|
||||
INCREMENT 1
|
||||
MAXVALUE 9223372036854775807
|
||||
MINVALUE 3
|
||||
CACHE 1;
|
||||
|
||||
|
||||
--
|
||||
-- Data for TOC entry 27 (OID 44866)
|
||||
-- Name: ac_users; Type: TABLE DATA; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
INSERT INTO ac_users VALUES (4, 'demo', 'demo', 'demo', 1, 'fe01ce2a7fbac8fafaed7c982a04e229', 0, 'Light', 'user');
|
||||
INSERT INTO ac_users VALUES (1, NULL, NULL, 'phpcompta', 1, 'b1cc88e1907cde80cb2595fa793b3da9', 1, 'Light', 'user');
|
||||
|
||||
|
||||
--
|
||||
-- Data for TOC entry 28 (OID 44876)
|
||||
-- Name: ac_dossier; Type: TABLE DATA; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
INSERT INTO ac_dossier VALUES (1, 'Demo', 'Base de données pour développement & démo', 0);
|
||||
|
||||
|
||||
--
|
||||
-- Data for TOC entry 29 (OID 44885)
|
||||
-- Name: jnt_use_dos; Type: TABLE DATA; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
INSERT INTO jnt_use_dos VALUES (1, 1, 1);
|
||||
INSERT INTO jnt_use_dos VALUES (2, 1, 2);
|
||||
INSERT INTO jnt_use_dos VALUES (3, 1, 5);
|
||||
INSERT INTO jnt_use_dos VALUES (4, 1, 6);
|
||||
INSERT INTO jnt_use_dos VALUES (13, 4, 1);
|
||||
INSERT INTO jnt_use_dos VALUES (14, 1, 7);
|
||||
INSERT INTO jnt_use_dos VALUES (15, 1, 8);
|
||||
INSERT INTO jnt_use_dos VALUES (16, 1, 9);
|
||||
INSERT INTO jnt_use_dos VALUES (17, 1, 10);
|
||||
INSERT INTO jnt_use_dos VALUES (18, 1, 11);
|
||||
INSERT INTO jnt_use_dos VALUES (19, 1, 3);
|
||||
INSERT INTO jnt_use_dos VALUES (20, 1, 4);
|
||||
INSERT INTO jnt_use_dos VALUES (22, 5, 4);
|
||||
INSERT INTO jnt_use_dos VALUES (23, 5, 1);
|
||||
|
||||
|
||||
--
|
||||
-- Data for TOC entry 30 (OID 44888)
|
||||
-- Name: version; Type: TABLE DATA; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
INSERT INTO "version" VALUES (4);
|
||||
|
||||
|
||||
--
|
||||
-- Data for TOC entry 31 (OID 44892)
|
||||
-- Name: priv_user; Type: TABLE DATA; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
INSERT INTO priv_user VALUES (1, 5, 'NO');
|
||||
INSERT INTO priv_user VALUES (2, 6, 'NO');
|
||||
INSERT INTO priv_user VALUES (3, 7, 'NO');
|
||||
INSERT INTO priv_user VALUES (4, 8, 'NO');
|
||||
INSERT INTO priv_user VALUES (5, 9, 'NO');
|
||||
INSERT INTO priv_user VALUES (6, 10, 'NO');
|
||||
INSERT INTO priv_user VALUES (7, 11, 'W');
|
||||
INSERT INTO priv_user VALUES (8, 12, 'NO');
|
||||
INSERT INTO priv_user VALUES (9, 13, 'W');
|
||||
INSERT INTO priv_user VALUES (10, 21, 'NO');
|
||||
INSERT INTO priv_user VALUES (12, 23, 'NO');
|
||||
INSERT INTO priv_user VALUES (11, 22, 'R');
|
||||
|
||||
|
||||
--
|
||||
-- Data for TOC entry 32 (OID 44898)
|
||||
-- Name: theme; Type: TABLE DATA; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
INSERT INTO theme VALUES ('classic', 'style.css', NULL);
|
||||
INSERT INTO theme VALUES ('Aqua', 'style-aqua.css', NULL);
|
||||
INSERT INTO theme VALUES ('Elegant', 'style-elegant.css', NULL);
|
||||
INSERT INTO theme VALUES ('Light', 'style-light.css', NULL);
|
||||
|
||||
|
||||
--
|
||||
-- Data for TOC entry 33 (OID 44905)
|
||||
-- Name: modeledef; Type: TABLE DATA; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
INSERT INTO modeledef VALUES (1, '(BE) Basique', 'Comptabilité Belge, tout doit être adaptée');
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 24 (OID 44942)
|
||||
-- Name: fk_jnt_use_dos; Type: INDEX; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
CREATE INDEX fk_jnt_use_dos ON jnt_use_dos USING btree (use_id);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 23 (OID 44943)
|
||||
-- Name: fk_jnt_dos_id; Type: INDEX; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
CREATE INDEX fk_jnt_dos_id ON jnt_use_dos USING btree (dos_id);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 19 (OID 44944)
|
||||
-- Name: ac_users_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY ac_users
|
||||
ADD CONSTRAINT ac_users_pkey PRIMARY KEY (use_id);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 20 (OID 44946)
|
||||
-- Name: ac_users_use_login_key; Type: CONSTRAINT; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY ac_users
|
||||
ADD CONSTRAINT ac_users_use_login_key UNIQUE (use_login);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 22 (OID 44948)
|
||||
-- Name: ac_dossier_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY ac_dossier
|
||||
ADD CONSTRAINT ac_dossier_pkey PRIMARY KEY (dos_id);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 21 (OID 44950)
|
||||
-- Name: ac_dossier_dos_name_key; Type: CONSTRAINT; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY ac_dossier
|
||||
ADD CONSTRAINT ac_dossier_dos_name_key UNIQUE (dos_name);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 25 (OID 44952)
|
||||
-- Name: jnt_use_dos_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY jnt_use_dos
|
||||
ADD CONSTRAINT jnt_use_dos_pkey PRIMARY KEY (use_id, dos_id);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 34 (OID 44954)
|
||||
-- Name: $1; Type: CONSTRAINT; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY jnt_use_dos
|
||||
ADD CONSTRAINT "$1" FOREIGN KEY (use_id) REFERENCES ac_users(use_id) ON UPDATE NO ACTION ON DELETE NO ACTION;
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 26 (OID 44958)
|
||||
-- Name: modeledef_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY modeledef
|
||||
ADD CONSTRAINT modeledef_pkey PRIMARY KEY (mod_id);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 3 (OID 44864)
|
||||
-- Name: users_id; Type: SEQUENCE SET; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
SELECT pg_catalog.setval ('users_id', 5, true);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 5 (OID 44883)
|
||||
-- Name: seq_jnt_use_dos; Type: SEQUENCE SET; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
SELECT pg_catalog.setval ('seq_jnt_use_dos', 23, true);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 7 (OID 44890)
|
||||
-- Name: seq_priv_user; Type: SEQUENCE SET; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
SELECT pg_catalog.setval ('seq_priv_user', 12, true);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 9 (OID 44903)
|
||||
-- Name: s_modid; Type: SEQUENCE SET; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
SELECT pg_catalog.setval ('s_modid', 1, false);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 11 (OID 44911)
|
||||
-- Name: dossier_id; Type: SEQUENCE SET; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
SELECT pg_catalog.setval ('dossier_id', 4, true);
|
||||
|
||||
|
||||
|
|
@ -1,41 +0,0 @@
|
|||
|
||||
/*
|
||||
* This file is part of PhpCompta.
|
||||
*
|
||||
* PhpCompta is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* PhpCompta is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with PhpCompta; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
create sequence s_centralized;
|
||||
|
||||
|
||||
CREATE TABLE centralized (
|
||||
c_id integer default nextval('s_centralized') not null primary key,
|
||||
c_j_id integer ,
|
||||
c_date date not null,
|
||||
c_internal text not null,
|
||||
c_montant float not null,
|
||||
c_debit boolean default 't',
|
||||
c_jrn_def int4 not null references jrn_def(jrn_def_id),
|
||||
c_poste integer references tmp_pcmn(pcm_val),
|
||||
c_description text,
|
||||
c_grp integer not null,
|
||||
c_comment text,
|
||||
c_rapt text,
|
||||
c_periode integer
|
||||
);
|
||||
|
||||
create index fk_centralized_c_jrn_def on centralized(c_jrn_def);
|
||||
create index fk_centralized_c_poste on centralized(c_poste);
|
||||
|
||||
2637
sql/demo.sql
2637
sql/demo.sql
File diff suppressed because it is too large
Load diff
|
|
@ -1,67 +0,0 @@
|
|||
/* $Revision$ */
|
||||
/*
|
||||
* This file is part of PhpCompta.
|
||||
*
|
||||
* PhpCompta is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* PhpCompta is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with PhpCompta; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
create sequence s_periode;
|
||||
create sequence s_currency;
|
||||
|
||||
create table parm_money (
|
||||
pm_id integer default nextval('s_currency'),
|
||||
pm_code char(3) primary key,
|
||||
pm_rate double precision
|
||||
);
|
||||
|
||||
create table parm_periode (
|
||||
p_id integer default nextval('s_periode') primary key,
|
||||
p_start date not null unique,
|
||||
p_end date,
|
||||
p_exercice text not null default to_char(now(),'YYYY'),
|
||||
p_closed boolean default false
|
||||
);
|
||||
|
||||
insert into parm_money (pm_code,pm_rate) values ('EUR ',1);
|
||||
set datestyle='european';
|
||||
|
||||
insert into parm_periode (p_start,p_end,p_exercice) values ('01-01-2003','31-01-2003','2003');
|
||||
insert into parm_periode (p_start,p_end,p_exercice) values ('01-02-2003','28-02-2003','2003');
|
||||
insert into parm_periode (p_start,p_end,p_exercice) values ('01-03-2003','31-03-2003','2003');
|
||||
insert into parm_periode (p_start,p_end,p_exercice) values ('01-04-2003','30-04-2003','2003');
|
||||
insert into parm_periode (p_start,p_end,p_exercice) values ('01-05-2003','31-05-2003','2003');
|
||||
insert into parm_periode (p_start,p_end,p_exercice) values ('01-06-2003','30-06-2003','2003');
|
||||
insert into parm_periode (p_start,p_end,p_exercice) values ('01-07-2003','31-07-2003','2003');
|
||||
insert into parm_periode (p_start,p_end,p_exercice) values ('01-08-2003','31-08-2003','2003');
|
||||
insert into parm_periode (p_start,p_end,p_exercice) values ('01-09-2003','30-09-2003','2003');
|
||||
insert into parm_periode (p_start,p_end,p_exercice) values ('01-10-2003','30-10-2003','2003');
|
||||
insert into parm_periode (p_start,p_end,p_exercice) values ('01-11-2003','30-11-2003','2003');
|
||||
insert into parm_periode (p_start,p_end,p_exercice) values ('01-12-2003','31-12-2003','2003');
|
||||
insert into parm_periode (p_start,p_exercice) values ('31-12-2003','2003');
|
||||
|
||||
-- for the year 2004
|
||||
insert into parm_periode (p_start,p_end,p_exercice) values (to_date('01-01-2004','DD.MM.YYYY'),to_date('31-01-2004','DD.MM.YYYY'),'2004');
|
||||
insert into parm_periode (p_start,p_end,p_exercice) values (to_date('01-02-2004','DD.MM.YYYY'),to_date('28-02-2004','DD.MM.YYYY'),'2004');
|
||||
insert into parm_periode (p_start,p_end,p_exercice) values (to_date('01-03-2004','DD.MM.YYYY'),to_date('31-03-2004','DD.MM.YYYY'),'2004');
|
||||
insert into parm_periode (p_start,p_end,p_exercice) values (to_date('01-04-2004','DD.MM.YYYY'),to_date('30-04-2004','DD.MM.YYYY'),'2004');
|
||||
insert into parm_periode (p_start,p_end,p_exercice) values (to_date('01-05-2004','DD.MM.YYYY'),to_date('31-05-2004','DD.MM.YYYY'),'2004');
|
||||
insert into parm_periode (p_start,p_end,p_exercice) values (to_date('01-06-2004','DD.MM.YYYY'),to_date('30-06-2004','DD.MM.YYYY'),'2004');
|
||||
insert into parm_periode (p_start,p_end,p_exercice) values (to_date('01-07-2004','DD.MM.YYYY'),to_date('31-07-2004','DD.MM.YYYY'),'2004');
|
||||
insert into parm_periode (p_start,p_end,p_exercice) values (to_date('01-08-2004','DD.MM.YYYY'),to_date('31-08-2004','DD.MM.YYYY'),'2004');
|
||||
insert into parm_periode (p_start,p_end,p_exercice) values (to_date('01-09-2004','DD.MM.YYYY'),to_date('30-09-2004','DD.MM.YYYY'),'2004');
|
||||
insert into parm_periode (p_start,p_end,p_exercice) values (to_date('01-10-2004','DD.MM.YYYY'),to_date('30-10-2004','DD.MM.YYYY'),'2004');
|
||||
insert into parm_periode (p_start,p_end,p_exercice) values (to_date('01-11-2004','DD.MM.YYYY'),to_date('30-11-2004','DD.MM.YYYY'),'2004');
|
||||
insert into parm_periode (p_start,p_end,p_exercice) values (to_date('01-12-2004','DD.MM.YYYY'),to_date('31-12-2004','DD.MM.YYYY'),'2004');
|
||||
insert into parm_periode (p_start,p_exercice) values (to_date('31-12-2004','DD.MM.YYYY'),'2004');
|
||||
|
|
@ -1,86 +0,0 @@
|
|||
ALTER TABLE ONLY tmp_pcmn
|
||||
ADD CONSTRAINT tmp_pcmn_pkey PRIMARY KEY (pcm_val);
|
||||
ALTER TABLE ONLY parm_money
|
||||
ADD CONSTRAINT parm_money_pkey PRIMARY KEY (pm_code);
|
||||
ALTER TABLE ONLY parm_periode
|
||||
ADD CONSTRAINT parm_periode_pkey PRIMARY KEY (p_id);
|
||||
ALTER TABLE ONLY parm_periode
|
||||
ADD CONSTRAINT parm_periode_p_start_key UNIQUE (p_start);
|
||||
ALTER TABLE ONLY jrn_type
|
||||
ADD CONSTRAINT jrn_type_pkey PRIMARY KEY (jrn_type_id);
|
||||
ALTER TABLE ONLY jrn_def
|
||||
ADD CONSTRAINT jrn_def_pkey PRIMARY KEY (jrn_def_id);
|
||||
ALTER TABLE ONLY jrn_def
|
||||
ADD CONSTRAINT jrn_def_jrn_def_name_key UNIQUE (jrn_def_name);
|
||||
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;
|
||||
ALTER TABLE ONLY jrnx
|
||||
ADD CONSTRAINT jrnx_pkey PRIMARY KEY (j_id);
|
||||
ALTER TABLE ONLY jrnx
|
||||
ADD CONSTRAINT "$1" FOREIGN KEY (j_poste) REFERENCES tmp_pcmn(pcm_val) ON UPDATE NO ACTION ON DELETE NO ACTION;
|
||||
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;
|
||||
ALTER TABLE ONLY user_pref
|
||||
ADD CONSTRAINT user_pref_pkey PRIMARY KEY (pref_user);
|
||||
ALTER TABLE ONLY formdef
|
||||
ADD CONSTRAINT formdef_pkey PRIMARY KEY (fr_id);
|
||||
ALTER TABLE ONLY form
|
||||
ADD CONSTRAINT form_pkey PRIMARY KEY (fo_id);
|
||||
ALTER TABLE ONLY form
|
||||
ADD CONSTRAINT "$1" FOREIGN KEY (fo_fr_id) REFERENCES formdef(fr_id) ON UPDATE NO ACTION ON DELETE NO ACTION;
|
||||
ALTER TABLE ONLY centralized
|
||||
ADD CONSTRAINT centralized_pkey PRIMARY KEY (c_id);
|
||||
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;
|
||||
ALTER TABLE ONLY centralized
|
||||
ADD CONSTRAINT "$2" FOREIGN KEY (c_poste) REFERENCES tmp_pcmn(pcm_val) ON UPDATE NO ACTION ON DELETE NO ACTION;
|
||||
ALTER TABLE ONLY user_sec_jrn
|
||||
ADD CONSTRAINT user_sec_jrn_pkey PRIMARY KEY (uj_id);
|
||||
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;
|
||||
ALTER TABLE ONLY "action"
|
||||
ADD CONSTRAINT action_pkey PRIMARY KEY (ac_id);
|
||||
ALTER TABLE ONLY user_sec_act
|
||||
ADD CONSTRAINT user_sec_act_pkey PRIMARY KEY (ua_id);
|
||||
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;
|
||||
ALTER TABLE ONLY jrn_action
|
||||
ADD CONSTRAINT jrn_action_pkey PRIMARY KEY (ja_id);
|
||||
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;
|
||||
ALTER TABLE ONLY fiche_def_ref
|
||||
ADD CONSTRAINT fiche_def_ref_pkey PRIMARY KEY (frd_id);
|
||||
ALTER TABLE ONLY fiche_def
|
||||
ADD CONSTRAINT fiche_def_pkey PRIMARY KEY (fd_id);
|
||||
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;
|
||||
ALTER TABLE ONLY attr_def
|
||||
ADD CONSTRAINT attr_def_pkey PRIMARY KEY (ad_id);
|
||||
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;
|
||||
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;
|
||||
ALTER TABLE ONLY fiche
|
||||
ADD CONSTRAINT fiche_pkey PRIMARY KEY (f_id);
|
||||
ALTER TABLE ONLY fiche
|
||||
ADD CONSTRAINT "$1" FOREIGN KEY (fd_id) REFERENCES fiche_def(fd_id) ON UPDATE NO ACTION ON DELETE NO ACTION;
|
||||
ALTER TABLE ONLY jnt_fic_att_value
|
||||
ADD CONSTRAINT jnt_fic_att_value_pkey PRIMARY KEY (jft_id);
|
||||
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;
|
||||
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;
|
||||
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;
|
||||
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;
|
||||
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;
|
||||
ALTER TABLE ONLY jrn_rapt
|
||||
ADD CONSTRAINT jrn_rapt_pkey PRIMARY KEY (jra_id);
|
||||
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;
|
||||
ALTER TABLE ONLY jrn
|
||||
ADD CONSTRAINT jrn_pkey PRIMARY KEY (jr_id, jr_def_id);
|
||||
ALTER TABLE ONLY stock_goods
|
||||
ADD CONSTRAINT stock_goods_pkey PRIMARY KEY (sg_id);
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,7 +0,0 @@
|
|||
pg_dump -s dossier4 > schema.sql
|
||||
awk '/SEQUENCE/,/;/ { print $0;}' < schema.sql > sequence.sql
|
||||
awk '/CREATE TABLE/,/;/ { print $0;}' < schema.sql > table.sql
|
||||
awk '/ALTER TABLE/,/;/ { print $0;}' < schema.sql > constraint.sql
|
||||
grep setval schema.sql >> sequence.sql
|
||||
pg_dump -D -a -O dossier4 > data.sql
|
||||
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,154 +0,0 @@
|
|||
-- Name: s_periode; Type: SEQUENCE; Schema: public; Owner: phpcompta
|
||||
CREATE SEQUENCE s_periode
|
||||
START 1
|
||||
INCREMENT 1
|
||||
MAXVALUE 9223372036854775807
|
||||
MINVALUE 1
|
||||
CACHE 1;
|
||||
-- Name: s_currency; Type: SEQUENCE; Schema: public; Owner: phpcompta
|
||||
CREATE SEQUENCE s_currency
|
||||
START 1
|
||||
INCREMENT 1
|
||||
MAXVALUE 9223372036854775807
|
||||
MINVALUE 1
|
||||
CACHE 1;
|
||||
-- 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;
|
||||
-- Name: s_grpt; Type: SEQUENCE; Schema: public; Owner: phpcompta
|
||||
CREATE SEQUENCE s_grpt
|
||||
START 1
|
||||
INCREMENT 1
|
||||
MAXVALUE 9223372036854775807
|
||||
MINVALUE 1
|
||||
CACHE 1;
|
||||
-- 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;
|
||||
-- Name: s_jrn; Type: SEQUENCE; Schema: public; Owner: phpcompta
|
||||
CREATE SEQUENCE s_jrn
|
||||
START 1
|
||||
INCREMENT 1
|
||||
MAXVALUE 9223372036854775807
|
||||
MINVALUE 1
|
||||
CACHE 1;
|
||||
-- Name: s_jrnx; Type: SEQUENCE; Schema: public; Owner: phpcompta
|
||||
CREATE SEQUENCE s_jrnx
|
||||
START 1
|
||||
INCREMENT 1
|
||||
MAXVALUE 9223372036854775807
|
||||
MINVALUE 1
|
||||
CACHE 1;
|
||||
-- Name: s_formdef; Type: SEQUENCE; Schema: public; Owner: phpcompta
|
||||
CREATE SEQUENCE s_formdef
|
||||
START 1
|
||||
INCREMENT 1
|
||||
MAXVALUE 9223372036854775807
|
||||
MINVALUE 1
|
||||
CACHE 1;
|
||||
-- Name: s_form; Type: SEQUENCE; Schema: public; Owner: phpcompta
|
||||
CREATE SEQUENCE s_form
|
||||
START 1
|
||||
INCREMENT 1
|
||||
MAXVALUE 9223372036854775807
|
||||
MINVALUE 1
|
||||
CACHE 1;
|
||||
-- Name: s_isup; Type: SEQUENCE; Schema: public; Owner: phpcompta
|
||||
CREATE SEQUENCE s_isup
|
||||
START 1
|
||||
INCREMENT 1
|
||||
MAXVALUE 9223372036854775807
|
||||
MINVALUE 1
|
||||
CACHE 1;
|
||||
-- Name: s_idef; Type: SEQUENCE; Schema: public; Owner: phpcompta
|
||||
CREATE SEQUENCE s_idef
|
||||
START 1
|
||||
INCREMENT 1
|
||||
MAXVALUE 9223372036854775807
|
||||
MINVALUE 1
|
||||
CACHE 1;
|
||||
-- Name: s_centralized; Type: SEQUENCE; Schema: public; Owner: phpcompta
|
||||
CREATE SEQUENCE s_centralized
|
||||
START 1
|
||||
INCREMENT 1
|
||||
MAXVALUE 9223372036854775807
|
||||
MINVALUE 1
|
||||
CACHE 1;
|
||||
-- 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;
|
||||
-- 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;
|
||||
-- Name: s_jrnaction; Type: SEQUENCE; Schema: public; Owner: phpcompta
|
||||
CREATE SEQUENCE s_jrnaction
|
||||
START 1
|
||||
INCREMENT 1
|
||||
MAXVALUE 9223372036854775807
|
||||
MINVALUE 1
|
||||
CACHE 1;
|
||||
-- Name: s_fiche; Type: SEQUENCE; Schema: public; Owner: phpcompta
|
||||
CREATE SEQUENCE s_fiche
|
||||
START 1
|
||||
INCREMENT 1
|
||||
MAXVALUE 9223372036854775807
|
||||
MINVALUE 1
|
||||
CACHE 1;
|
||||
-- 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;
|
||||
-- Name: s_fdef; Type: SEQUENCE; Schema: public; Owner: phpcompta
|
||||
CREATE SEQUENCE s_fdef
|
||||
START 1
|
||||
INCREMENT 1
|
||||
MAXVALUE 9223372036854775807
|
||||
MINVALUE 1
|
||||
CACHE 1;
|
||||
-- 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;
|
||||
-- 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;
|
||||
-- Name: s_stock_goods; Type: SEQUENCE; Schema: public; Owner: phpcompta
|
||||
CREATE SEQUENCE s_stock_goods
|
||||
START 1
|
||||
INCREMENT 1
|
||||
MAXVALUE 9223372036854775807
|
||||
MINVALUE 1
|
||||
CACHE 1;
|
||||
-- Name: s_jrn_rapt; Type: SEQUENCE; Schema: public; Owner: phpcompta
|
||||
CREATE SEQUENCE s_jrn_rapt
|
||||
START 1
|
||||
INCREMENT 1
|
||||
MAXVALUE 9223372036854775807
|
||||
MINVALUE 1
|
||||
CACHE 1;
|
||||
|
|
@ -1,185 +0,0 @@
|
|||
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
|
||||
);
|
||||
CREATE TABLE "version" (
|
||||
val integer
|
||||
);
|
||||
CREATE TABLE parm_money (
|
||||
pm_id integer DEFAULT nextval('s_currency'::text),
|
||||
pm_code character(3) NOT NULL,
|
||||
pm_rate double precision
|
||||
);
|
||||
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
|
||||
);
|
||||
CREATE TABLE jrn_type (
|
||||
jrn_type_id character(3) NOT NULL,
|
||||
jrn_desc text
|
||||
);
|
||||
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
|
||||
);
|
||||
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
|
||||
);
|
||||
CREATE TABLE user_pref (
|
||||
pref_user text NOT NULL,
|
||||
pref_periode integer NOT NULL
|
||||
);
|
||||
CREATE TABLE formdef (
|
||||
fr_id integer DEFAULT nextval('s_formdef'::text) NOT NULL,
|
||||
fr_label text
|
||||
);
|
||||
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
|
||||
);
|
||||
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
|
||||
);
|
||||
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
|
||||
);
|
||||
CREATE TABLE "action" (
|
||||
ac_id integer NOT NULL,
|
||||
ac_description text NOT NULL
|
||||
);
|
||||
CREATE TABLE user_sec_act (
|
||||
ua_id integer DEFAULT nextval('s_user_act'::text) NOT NULL,
|
||||
ua_login text,
|
||||
ua_act_id integer
|
||||
);
|
||||
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)
|
||||
);
|
||||
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
|
||||
);
|
||||
CREATE TABLE fiche_def_ref (
|
||||
frd_id integer DEFAULT nextval('s_fiche_def_ref'::text) NOT NULL,
|
||||
frd_text text,
|
||||
frd_class_base integer
|
||||
);
|
||||
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
|
||||
);
|
||||
CREATE TABLE attr_def (
|
||||
ad_id integer DEFAULT nextval('s_attr_def'::text) NOT NULL,
|
||||
ad_text text
|
||||
);
|
||||
CREATE TABLE attr_min (
|
||||
frd_id integer,
|
||||
ad_id integer
|
||||
);
|
||||
CREATE TABLE fiche (
|
||||
f_id integer DEFAULT nextval('s_fiche'::text) NOT NULL,
|
||||
fd_id integer
|
||||
);
|
||||
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
|
||||
);
|
||||
CREATE TABLE attr_value (
|
||||
jft_id integer,
|
||||
av_text text
|
||||
);
|
||||
CREATE TABLE jnt_fic_attr (
|
||||
fd_id integer,
|
||||
ad_id integer
|
||||
);
|
||||
CREATE TABLE jrn_rapt (
|
||||
jra_id integer DEFAULT nextval('s_jrn_rapt'::text) NOT NULL,
|
||||
jr_id integer NOT NULL,
|
||||
jra_concerned integer NOT NULL
|
||||
);
|
||||
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,
|
||||
jr_valid boolean DEFAULT true
|
||||
);
|
||||
CREATE TABLE stock_goods (
|
||||
sg_id integer DEFAULT nextval('s_stock_goods'::text) NOT NULL,
|
||||
j_id integer,
|
||||
f_id integer NOT NULL,
|
||||
sg_code text,
|
||||
sg_quantity integer DEFAULT 0,
|
||||
sg_type character(1) DEFAULT 'c' NOT NULL,
|
||||
sg_date date,
|
||||
sg_tech_date date DEFAULT now(),
|
||||
sg_tech_user text,
|
||||
CONSTRAINT stock_goods_sg_type CHECK (((sg_type = 'c'::bpchar) OR (sg_type = 'd'::bpchar)))
|
||||
);
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
A="pg_dump -d -U phpcompta "
|
||||
B=`date '+%Y%m%d-%H%M%S'`
|
||||
cp account_repository.sql $B-account_repository.sql
|
||||
cp demo.sql $B-demo.sql
|
||||
cp mod-be.sql $B-mod-be.sql
|
||||
|
||||
$A account_repository > account_repository.sql
|
||||
$A dossier1 > demo.sql
|
||||
$A mod1 > mod-be.sql
|
||||
|
||||
227
sql/fiche.sql
227
sql/fiche.sql
|
|
@ -1,227 +0,0 @@
|
|||
-- For the fiche dev only
|
||||
-- Create the sequence
|
||||
\echo recreate Sequence
|
||||
\echo try first to drop it, no worry about error messages
|
||||
|
||||
\echo drop SEQUENCE s_fiche
|
||||
drop SEQUENCE s_fiche;
|
||||
\echo CREATE SEQUENCE s_fiche
|
||||
CREATE SEQUENCE s_fiche;
|
||||
\echo drop sequence s_fiche_def_ref
|
||||
drop sequence s_fiche_def_ref;
|
||||
\echo create sequence s_fiche_def_ref
|
||||
create sequence s_fiche_def_ref;
|
||||
\echo drop sequence s_fdef
|
||||
drop sequence s_fdef;
|
||||
\echo create sequence s_fdef
|
||||
create sequence s_fdef;
|
||||
\echo drop sequence s_attr_def;
|
||||
drop sequence s_attr_def;
|
||||
\echo drop sequence s_attr_def;
|
||||
drop sequence s_attr_def;
|
||||
\echo create sequence s_attr_def
|
||||
create sequence s_attr_def;
|
||||
\echo drop SEQUENCE s_jnt_fic_att_value
|
||||
drop SEQUENCE s_jnt_fic_att_value;
|
||||
\echo CREATE SEQUENCE s_jnt_fic_att_value
|
||||
CREATE SEQUENCE s_jnt_fic_att_value;
|
||||
|
||||
\echo Drop first the tables and after
|
||||
\echo recreate them
|
||||
\echo drop table fiche_def_ref
|
||||
drop table fiche_def_ref cascade;
|
||||
\echo CREATE TABLE fiche_def_ref
|
||||
CREATE TABLE fiche_def_ref (
|
||||
frd_id integer DEFAULT nextval('s_fiche_def_ref'::text) primary key,
|
||||
frd_text text,
|
||||
frd_class_base integer default null
|
||||
);
|
||||
|
||||
\echo drop TABLE fiche_def
|
||||
drop TABLE fiche_def cascade;
|
||||
\echo CREATE TABLE fiche_def
|
||||
CREATE TABLE fiche_def (
|
||||
fd_id integer DEFAULT nextval('s_fdef'::text) primary key,
|
||||
fd_class_base integer,
|
||||
fd_label text NOT NULL,
|
||||
fd_create_account bool default false,
|
||||
frd_id integer NOT NULL references fiche_def_ref(frd_id)
|
||||
);
|
||||
create index fk_fiche_def_frd_id on fiche_def (frd_id);
|
||||
|
||||
\echo drop TABLE attr_value
|
||||
drop TABLE attr_value cascade;
|
||||
\echo CREATE TABLE attr_value
|
||||
CREATE TABLE attr_value (
|
||||
jft_id integer references jnt_fic_att_value(jft_id),
|
||||
av_text text
|
||||
);
|
||||
create index fk_attr_value_jft_id on attr_value (jft_id);
|
||||
|
||||
\echo drop TABLE attr_def
|
||||
drop TABLE attr_def cascade;
|
||||
\echo CREATE TABLE attr_def
|
||||
CREATE TABLE attr_def (
|
||||
ad_id integer DEFAULT nextval('s_attr_def'::text) primary key,
|
||||
ad_text text
|
||||
);
|
||||
|
||||
\echo drop TABLE attr_min
|
||||
drop TABLE attr_min cascade;
|
||||
\echo CREATE TABLE attr_min
|
||||
CREATE TABLE attr_min (
|
||||
frd_id integer references fiche_def_ref(frd_id),
|
||||
ad_id integer references attr_def(ad_id)
|
||||
);
|
||||
create index fk_attr_min_frd_id on attr_min(frd_id);
|
||||
create index fk_attr_min_ad_id on attr_min (ad_id);
|
||||
|
||||
\echo drop TABLE fiche
|
||||
drop TABLE fiche cascade;
|
||||
\echo CREATE TABLE fiche
|
||||
CREATE TABLE fiche (
|
||||
f_id integer DEFAULT nextval('s_fiche'::text) primary key,
|
||||
fd_id integer references fiche_def(fd_id)
|
||||
);
|
||||
create index fk_fiche_fd_id on fiche(fd_id);
|
||||
|
||||
|
||||
\echo drop TABLE jnt_fic_att_value
|
||||
drop TABLE jnt_fic_att_value cascade;
|
||||
\echo CREATE TABLE jnt_fic_att_value
|
||||
CREATE TABLE jnt_fic_att_value (
|
||||
jft_id integer DEFAULT nextval('s_jnt_fic_att_value'::text) primary key,
|
||||
f_id integer references fiche(f_id),
|
||||
ad_id integer references attr_def(ad_id)
|
||||
);
|
||||
\echo drop attr_value
|
||||
drop table attr_value;
|
||||
\echo create table attr_value
|
||||
create table attr_value (
|
||||
jft_id integer references jnt_fic_att_value(jft_id),
|
||||
av_text text);
|
||||
|
||||
\echo drop table jnt_fic_attr
|
||||
drop table jnt_fic_attr
|
||||
;
|
||||
\echo create table jnt_fic_attr
|
||||
create table jnt_fic_attr (
|
||||
fd_id integer references fiche_def(fd_id),
|
||||
ad_id integer references attr_def(ad_id))
|
||||
;
|
||||
--
|
||||
-- PostgreSQL database dump
|
||||
--
|
||||
|
||||
\connect - phpcompta
|
||||
|
||||
SET search_path = public, pg_catalog;
|
||||
|
||||
--
|
||||
-- Data for TOC entry 1 (OID 21236)
|
||||
-- Name: attr_def; Type: TABLE DATA; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
INSERT INTO attr_def VALUES (1, 'Nom');
|
||||
INSERT INTO attr_def VALUES (2, 'Taux TVA');
|
||||
INSERT INTO attr_def VALUES (3, 'Numéro de compte');
|
||||
INSERT INTO attr_def VALUES (4, 'Nom de la banque');
|
||||
INSERT INTO attr_def VALUES (5, 'Poste Comptable');
|
||||
INSERT INTO attr_def VALUES (6, 'Prix vente');
|
||||
INSERT INTO attr_def VALUES (7, 'Prix achat');
|
||||
INSERT INTO attr_def VALUES (8, 'Durée Amortissement');
|
||||
INSERT INTO attr_def VALUES (9, 'Description');
|
||||
INSERT INTO attr_def VALUES (10, 'Date début');
|
||||
INSERT INTO attr_def VALUES (11, 'Montant initial');
|
||||
INSERT INTO attr_def VALUES (12, 'Personne de contact ');
|
||||
INSERT INTO attr_def VALUES (13, 'numéro de tva ');
|
||||
INSERT INTO attr_def VALUES (14, 'Adresse ');
|
||||
INSERT INTO attr_def VALUES (15, 'code postale ');
|
||||
INSERT INTO attr_def VALUES (16, 'pays ');
|
||||
INSERT INTO attr_def VALUES (17, 'téléphone ');
|
||||
INSERT INTO attr_def VALUES (18, 'email ');
|
||||
|
||||
|
||||
--
|
||||
-- PostgreSQL database dump
|
||||
--
|
||||
|
||||
\connect - phpcompta
|
||||
|
||||
SET search_path = public, pg_catalog;
|
||||
|
||||
--
|
||||
-- Data for TOC entry 1 (OID 21206)
|
||||
-- Name: fiche_def_ref; Type: TABLE DATA; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
INSERT INTO fiche_def_ref VALUES (1, 'Vente Service', 700);
|
||||
INSERT INTO fiche_def_ref VALUES (2, 'Marchandises achat ', 604);
|
||||
-- INSERT INTO fiche_def_ref VALUES (2, 'Marchandises Vente & Achat', 604,704);
|
||||
INSERT INTO fiche_def_ref VALUES (3, 'Achat Service et biens divers', 61);
|
||||
INSERT INTO fiche_def_ref VALUES (4, 'Banque', 5500);
|
||||
INSERT INTO fiche_def_ref VALUES (5, 'Prêt > a un an', 17);
|
||||
INSERT INTO fiche_def_ref VALUES (6, 'Prêt < a un an', 430);
|
||||
INSERT INTO fiche_def_ref VALUES (8, 'Fournisseurs', 440);
|
||||
INSERT INTO fiche_def_ref VALUES (9, 'Clients', 400);
|
||||
INSERT INTO fiche_def_ref VALUES (10, 'Salaire Administrateur', 6200);
|
||||
INSERT INTO fiche_def_ref VALUES (11, 'Salaire Ouvrier', 6203);
|
||||
INSERT INTO fiche_def_ref VALUES (12, 'Salaire Employé', 6202);
|
||||
INSERT INTO fiche_def_ref VALUES (13, 'Dépenses non admises', 674);
|
||||
INSERT INTO fiche_def_ref VALUES (7, 'Matériel à amortir', 24);
|
||||
|
||||
INSERT INTO fiche_def_ref VALUES (14, 'Marchandises Vente ', 704);
|
||||
|
||||
--
|
||||
-- PostgreSQL database dump
|
||||
--
|
||||
|
||||
\connect - phpcompta
|
||||
|
||||
SET search_path = public, pg_catalog;
|
||||
|
||||
--
|
||||
-- Data for TOC entry 1 (OID 21244)
|
||||
-- Name: attr_min; Type: TABLE DATA; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
INSERT INTO attr_min VALUES (1, 1);
|
||||
INSERT INTO attr_min VALUES (1, 2);
|
||||
INSERT INTO attr_min VALUES (2, 1);
|
||||
INSERT INTO attr_min VALUES (2, 2);
|
||||
INSERT INTO attr_min VALUES (3, 1);
|
||||
INSERT INTO attr_min VALUES (3, 2);
|
||||
INSERT INTO attr_min VALUES (4, 1);
|
||||
INSERT INTO attr_min VALUES (4, 3);
|
||||
INSERT INTO attr_min VALUES (4, 4);
|
||||
INSERT INTO attr_min VALUES (4, 12);
|
||||
INSERT INTO attr_min VALUES (4, 13);
|
||||
INSERT INTO attr_min VALUES (4, 14);
|
||||
INSERT INTO attr_min VALUES (4, 15);
|
||||
INSERT INTO attr_min VALUES (4, 16);
|
||||
INSERT INTO attr_min VALUES (4, 17);
|
||||
INSERT INTO attr_min VALUES (4, 18);
|
||||
INSERT INTO attr_min VALUES (8, 1);
|
||||
INSERT INTO attr_min VALUES (8, 12);
|
||||
INSERT INTO attr_min VALUES (8, 13);
|
||||
INSERT INTO attr_min VALUES (8, 14);
|
||||
INSERT INTO attr_min VALUES (8, 15);
|
||||
INSERT INTO attr_min VALUES (8, 16);
|
||||
INSERT INTO attr_min VALUES (8, 17);
|
||||
INSERT INTO attr_min VALUES (8, 18);
|
||||
INSERT INTO attr_min VALUES (9, 1);
|
||||
INSERT INTO attr_min VALUES (9, 12);
|
||||
INSERT INTO attr_min VALUES (9, 13);
|
||||
INSERT INTO attr_min VALUES (9, 14);
|
||||
INSERT INTO attr_min VALUES (9, 15);
|
||||
INSERT INTO attr_min VALUES (9, 16);
|
||||
INSERT INTO attr_min VALUES (9, 17);
|
||||
INSERT INTO attr_min VALUES (9, 18);
|
||||
INSERT INTO attr_min VALUES (1, 6);
|
||||
INSERT INTO attr_min VALUES (1, 7);
|
||||
INSERT INTO attr_min VALUES (2, 6);
|
||||
INSERT INTO attr_min VALUES (2, 7);
|
||||
INSERT INTO attr_min VALUES (3, 7);
|
||||
INSERT INTO attr_min VALUES (14, 1);
|
||||
|
||||
|
||||
38
sql/form.sql
38
sql/form.sql
|
|
@ -1,38 +0,0 @@
|
|||
|
||||
/*
|
||||
* This file is part of PhpCompta.
|
||||
*
|
||||
* PhpCompta is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* PhpCompta is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with PhpCompta; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
create sequence s_formdef;
|
||||
|
||||
create sequence s_form;
|
||||
|
||||
create table formdef (
|
||||
fr_id integer not null default nextval('s_formdef') primary key,
|
||||
fr_label text
|
||||
|
||||
);
|
||||
|
||||
|
||||
create table form (
|
||||
fo_id integer not null default nextval ('s_form') primary key,
|
||||
fo_fr_id integer references formdef(fr_id),
|
||||
fo_pos integer,
|
||||
fo_label text,
|
||||
fo_formula text
|
||||
);
|
||||
create index fk_form_fo_fr_id on form (fo_fr_id);
|
||||
|
||||
|
|
@ -1,966 +0,0 @@
|
|||
|
||||
/*
|
||||
* This file is part of PhpCompta.
|
||||
*
|
||||
* PhpCompta is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* PhpCompta is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with PhpCompta; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (10 ,'Capital ',1 );
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (100,' Capital souscrit',10);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (11 ,'Prime d''émission ',1 );
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (12 ,'Plus Value de réévaluation ',1);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (13 ,'Réserve ',1);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (130,'Réserve légale',13);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (131,'Réserve indisponible',13);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (1310,'Réserve pour actions propres',131);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (1311,' Autres réserves indisponibles',131);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (132,' Réserves immunisées',13);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (133,'Réserves disponibles',13);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (14 ,'Bénéfice ou perte reportée', 1);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (140,'Bénéfice reporté',14);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (141,'Perte reportée',14);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (15,'Subside en capital',1);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (16,'Provisions pour risques et charges',1);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (160,'Provisions pour pensions et obligations similaires',16);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (161,'Provisions pour charges fiscales',16);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (162,'Provisions pour grosses réparation et gros entretien',16);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (17,' Dettes à plus d''un an',1);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (170,'Emprunts subordonnés',17);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (1700,'convertibles',170);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (1701,'non convertibles',170);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (171,'Emprunts subordonnés',17);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (1710,'convertibles',170);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (1711,'non convertibles',170);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (172,' Dettes de locations financement',17);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (173,' Etablissement de crédit',17);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (1730,'Dettes en comptes',173);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (1731,'Promesses',173);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (1732,'Crédits d''acceptation',173);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (174,'Autres emprunts',17);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (175,'Dettes commerciales',17);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (1750,'Fournisseurs',175);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (1751,'Effets à payer',175);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (176,'Acomptes reçus sur commandes',17);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (178,'Cautionnement reçus en numéraires',17);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (179,'Dettes diverses',17);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (20,'Frais d''établissement',2);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (200,'Frais de constitution et d''augmentation de capital',20);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (201,' Frais d''émission d''emprunts et primes de remboursement',20);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (202,'Autres frais d''établissement',20);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (204,'Frais de restructuration',20);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (21,'Immobilisations incorporelles',2);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (210,'Frais de recherche et de développement',21);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (211,'Concessions, brevet, licence savoir faire, marque et droit similaires',21);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (212,'Goodwill',21);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (213,'Acomptes versés',21);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (22,'Terrains et construction',2);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (220,'Terrains',22);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (221,'Construction',22);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (222,'Terrains bâtis',22);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (223,'Autres droits réels sur des immeubles',22);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (23,' Installations, machines et outillages',2);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (24,'Mobilier et Matériel roulant',2);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (25,'Immobilisations détenus en location-financement et droits similaires',2);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (250,'Terrains',25);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (251,'Construction',25);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (252,'Terrains bâtis',25);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (253,'Mobilier et matériels roulants',25);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (26,'Autres immobilisations corporelles',2);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (27,'Immobilisations corporelles en cours et acomptes versés',2);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (28,'Immobilisations financières',2);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (280,'Participation dans des entreprises liées',28);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2800,'Valeur d''acquisition',280);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2801,'Montants non-appelés(-)',280);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2808,'Plus-values actées',280);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2809,'Réductions de valeurs actées',280);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (281,'Créance sur des entreprises liées',28);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2810,'Créance en compte',281);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2811,'Effets à recevoir',281);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2812,'Titre à reveny fixe',281);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2817,'Créances douteuses',281);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2819,'Réduction de valeurs actées',281);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (282,'Participations dans des entreprises avec lesquelles il existe un lien de participation',28);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2820,'Valeur d''acquisition',282);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2821,'Montants non-appelés(-)',282);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2828,'Plus-values actées',282);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2829,'Réductions de valeurs actées',282);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (283,'Créances sur des entreprises avec lesquelles existe un lien de participation',28);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2830,'Créance en compte',283);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2831,'Effets à recevoir',283);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2832,'Titre à revenu fixe',283);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2837,'Créances douteuses',283);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2839,'Réduction de valeurs actées',283);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (284,'Autres actions et parts',28);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2840,'Valeur d''acquisition',284);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2841,'Montants non-appelés(-)',284);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2848,'Plus-values actées',284);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2849,'Réductions de valeurs actées',284);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (285,'Autres créances',28);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2850,'Créance en compte',285);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2851,'Effets à recevoir',285);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2852,'Titre à revenu fixe',285);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2857,'Créances douteuses',285);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2859,'Réductions de valeurs actées',285);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (288,'Cautionnements versés en numéraires',28);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (29,'Créances à plus d''un an',2);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (290,'Créances commerciales',29);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2900,'Clients',290);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2901,'Effets à recevoir',290);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2906,'Acomptes versés',290);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2907,'Créances douteuses',290);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2909,'Réductions de valeurs actées',290);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (291,'Autres créances',29);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2910,'Créances en comptes',291);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2911,'Effets à recevoir',291);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2917,'Créances douteuses',291);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2919,'Réductions de valeurs actées(-)',291);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (30,'Approvisionements - Matières premières',3);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (300,'Valeur d''acquisition',30);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (309,'Réductions de valeur actées',30);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (31,'Approvisionnements - fournitures',3);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (310,'Valeur d''acquisition',31);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (319,'Réductions de valeurs actées(-)',31);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (32,'En-cours de fabrication',3);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (320,'Valeurs d''acquisition',32);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (329,'Réductions de valeur actées',32);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (33,'Produits finis',3);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (330,'Valeur d''acquisition',33);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (339,'Réductions de valeur actées',33);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (34,'Marchandises',3);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (340,'Valeur d''acquisition',34);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (349,'Réductions de valeur actées',34);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (35,'Immeubles destinés à la vente',3);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (350,'Valeur d''acquisition',35);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (359,'Réductions de valeur actées',35);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (36,'Acomptes versés sur achats pour stocks',3);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (360,'Valeur d''acquisition',36);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (369,'Réductions de valeur actées',36);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (37,'Commandes en cours éxécution',3);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (370,'Valeur d''acquisition',37);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (371,'Bénéfice pris en compte ',37);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (379,'Réductions de valeur actées',37);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (40,'Créances commerciales',4);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (400,'Clients',40);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (401,'Effets à recevoir',40);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (404,'Produits à recevoir',40);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (406,'Acomptes versés',40);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (407,'Créances douteuses',40);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (409,'Réductions de valeur actées',40);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (41,'Autres créances',4);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (410,'Capital appelé non versé',41);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (411,'TVA à récupérer',41);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (412,'Impôts et précomptes à récupérer',41);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4120,'Impôt belge sur le résultat',412);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4121,'Impôt belge sur le résultat',412);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4122,'Impôt belge sur le résultat',412);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4123,'Impôt belge sur le résultat',412);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4124,'Impôt belge sur le résultat',412);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4125,'Autres impôts et taxes belges',412);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4126,'Autres impôts et taxes belges',412);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4127,'Autres impôts et taxes belges',412);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4128,'Impôts et taxes étrangers',412);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (414,'Produits à recevoir',41);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (416,'Créances diverses',41);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4160,'Comptes de l''exploitant',416);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (417,'Créances douteuses',41);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (418,'Cautionnements versés en numéraires',41);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (419,'Réductions de valeur actées',41);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (42,'Dettes à plus dun an échéant dans l''année',4);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (420,'Emprunts subordonnés',42);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4200,'convertibles',420);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4201,'non convertibles',420);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (421,'Emprunts subordonnés',42);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4210,'convertibles',420);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4211,'non convertibles',420);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (422,' Dettes de locations financement',42);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (423,' Etablissement de crédit',42);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4230,'Dettes en comptes',423);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4231,'Promesses',423);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4232,'Crédits d''acceptation',423);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (424,'Autres emprunts',42);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (425,'Dettes commerciales',42);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4250,'Fournisseurs',425);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4251,'Effets à payer',425);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (426,'Acomptes reçus sur commandes',42);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (428,'Cautionnement reçus en numéraires',42);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (429 ,'Dettes diverses',42);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (43,'Dettes financières',4);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (430,'Etablissements de crédit - Emprunts à compte à terme fixe',43);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (431,'Etablissements de crédit - Promesses',43);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (432,' Etablissements de crédit - Crédits d''acceptation',43);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (433,'Etablissements de crédit -Dettes en comptes courant',43);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (439,'Autres emprunts',43);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (44,'Dettes commerciales',4);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (440,'Fournisseurs',44);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (441,'Effets à payer',44);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (444,'Factures à recevoir',44);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (45,'Dettes fiscales, salariales et sociales',4);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (450,'Dettes fiscales estimées',45);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4500,'Impôts belges sur le résultat',450);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4501,'Impôts belges sur le résultat',450);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4502,'Impôts belges sur le résultat',450);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4503,'Impôts belges sur le résultat',450);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4504,'Impôts belges sur le résultat',450);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4505,'Autres impôts et taxes belges',450);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4506,'Autres impôts et taxes belges',450);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4507,'Autres impôts et taxes belges',450);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4508,'Impôts et taxes étrangers',450);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (451,'TVA à payer',45);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (452,'Impôts et taxes à payer',45);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4520,'Impôts belges sur le résultat',452);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4521,'Impôts belges sur le résultat',452);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4522,'Impôts belges sur le résultat',452);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4523,'Impôts belges sur le résultat',452);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4524,'Impôts belges sur le résultat',452);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4525,'Autres impôts et taxes belges',452);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4526,'Autres impôts et taxes belges',452);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4527,'Autres impôts et taxes belges',452);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4528,'Impôts et taxes étrangers',452);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (453,'Précomptes retenus',45);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (454,'Office National de la Sécurité Sociales',45);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (455,'Rémunérations',45);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (456,'Pécules de vacances',45);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (459,'Autres dettes sociales',45);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (46,'Acomptes reçus sur commandes',4);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (47,'Dettes découlant de l''affectation du résultat',4);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (470,'Dividendes et tantièmes d''exercices antérieurs',47);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (471,'Dividendes de l''exercice',47);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (472,'Tantièmes de l''exercice',47);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (473,'Autres allocataires',47);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (48,'Dettes diverses',4);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (480,'Obligations et coupons échus',48);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (488,'Cautionnements reçus en numéraires',48);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (489,'Autres dettes diverses',48);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4890,'Compte de l''exploitant',489);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (49,'Comptes de régularisation',4);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (490,'Charges à reporter',49);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (491,'Produits acquis',49);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (492,'Charges à imputer',49);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (493,'Produits à reporter',49);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (499,'Comptes d''attentes',49);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (50,'Actions propres',5);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (51,'Actions et parts',5);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (510,'Valeur d''acquisition',51);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (511,'Montant non appelés',51);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (519,'Réductions de valeur actées',51);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (52,'Titres à revenu fixe',5);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (520,'Valeur d''acquisition',52);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (529,'Réductions de valeur actées',52);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (53,'Dépôts à terme',5);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (530,'de plus d''un an',53);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (531,'de plus d''un mois et d''un an au plus',53);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (532,'d''un mois au plus',53);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (539,'Réductions de valeur actées',53);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (54,'Valeurs échues à l''encaissement',5);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (55,'Etablissement de crédit',5);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (550,'Banque 1',55);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5500,'Comptes courants',550);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5501,'Chèques émis (-)',550);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5509,'Réduction de valeur actée',550);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5510,'Comptes courants',551);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5511,'Chèques émis (-)',551);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5519,'Réduction de valeur actée',551);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5520,'Comptes courants',552);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5521,'Chèques émis (-)',552);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5529,'Réduction de valeur actée',552);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5530,'Comptes courants',553);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5531,'Chèques émis (-)',553);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5539,'Réduction de valeur actée',553);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5540,'Comptes courants',554);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5541,'Chèques émis (-)',554);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5549,'Réduction de valeur actée',554);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5550,'Comptes courants',555);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5551,'Chèques émis (-)',555);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5559,'Réduction de valeur actée',555);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5560,'Comptes courants',556);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5561,'Chèques émis (-)',556);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5569,'Réduction de valeur actée',556);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5570,'Comptes courants',557);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5571,'Chèques émis (-)',557);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5579,'Réduction de valeur actée',557);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5580,'Comptes courants',558);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5581,'Chèques émis (-)',558);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5589,'Réduction de valeur actée',558);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5590,'Comptes courants',559);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5591,'Chèques émis (-)',559);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5599,'Réduction de valeur actée',559);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (56,'Office des chèques postaux',5);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (560,'Compte courant',56);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (561,'Chèques émis',56);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (57,'Caisses',5);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (578,'Caisse timbre',57);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (58,'Virement interne',5);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (60,'Approvisionnement et marchandises',6);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (600,'Achats de matières premières',60);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (601,'Achats de fournitures',60);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (602,'Achats de services, travaux et études',60);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (603,'Sous-traitances générales',60);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (604,'Achats de marchandises',60);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (605,'Achats d''immeubles destinés à la vente',60);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (608,'Remises, ristournes et rabais obtenus(-)',60);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (609,'Variation de stock',60);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6090,'de matières premières',609);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6091,'de fournitures',609);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6094,'de marchandises',609);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6095,'immeubles achetés destinés à la vente',609);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (61,'Services et biens divers',6);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (62,'Rémunérations, charges sociales et pensions',6);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (620,'Rémunérations et avantages sociaux directs',62);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6200,'Administrateurs ou gérants',620);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6201,'Personnel de directions',620);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6202,'Employés,620',6202);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6203,'Ouvriers',620);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6204,'Autres membres du personnel',620);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (621,'Cotisations patronales d''assurances sociales',62);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (622,'Primes partonales pour assurances extra-légales',62);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (623,'Autres frais de personnel',62);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (624,'Pensions de retraite et de survie',62);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6240,'Administrateurs ou gérants',624);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6241,'Personnel',624);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (63,'Amortissements, réductions de valeurs et provisions pour risques et charges',6);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (630,'Dotations aux amortissements et réduction de valeurs sur immobilisations',63);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6300,' Dotations aux amortissements sur frais d''établissement',630);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6301,'Dotations aux amortissements sur immobilisations incorporelles',630);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6302,'Dotations aux amortissements sur immobilisations corporelles',630);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6308,'Dotations aux réductions de valeur sur immobilisations incorporelles',630);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6309,'Dotations aux réductions de valeur sur immobilisations corporelles',630);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (631,'Réductions de valeur sur stocks',63);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6310,'Dotations',631);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6311,'Reprises(-)',631);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (632,'Réductions de valeur sur commande en cours d''éxécution',63);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6320,'Dotations',632);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6321,'Reprises(-)',632);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (633,'Réductions de valeurs sur créances commerciales à plus d''un an',63);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6330,'Dotations',633);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6331,'Reprises(-)',633);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (634,'Réductions de valeur sur créances commerciales à un an au plus',63);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6340,'Dotations',634);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6341,'Reprise',634);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (635,'Provisions pour pensions et obligations similaires',63);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6350,'Dotations',635);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6351,'Utilisation et reprises',635);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (636,'Provisions pour grosses réparations et gros entretien',63);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6360,'Dotations',636);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6361,'Reprises(-)',636);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (637,'Provisions pour autres risques et charges',63);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6370,'Dotations',637);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6371,'Reprises(-)',637);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (64,'Autres charges d''exploitation',6);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (640,'Charges fiscales d''exploitation',64);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (641,'Moins-values sur réalisations courantes d''immobilisations corporelles',64);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (642,'Moins-value sur réalisation de créances commerciales',64);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (643,'Charges d''exploitations',64);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (644,'Charges d''exploitations',64);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (645,'Charges d''exploitations',64);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (646,'Charges d''exploitations',64);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (647,'Charges d''exploitations',64);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (648,'Charges d''exploitations',64);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (649,'Charges d''exploitation portées à l''actif au titre de frais de restructuration(-)',64);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (65,'Charges financières',6);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (650,'Charges des dettes',65);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6500,'Intérêts, commmissions et frais afférents aux dettes',650);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6501,'Amortissements des frais d''émissions d''emrunts et des primes de remboursement',650);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6502,'Autres charges des dettes',650);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6503,'Intérêts intercalaires portés à l''actif(-)',650);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (651,'Réductions de valeur sur actifs circulants',65);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6510,'Dotations',651);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6511,'Reprises(-)',651);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (652,'Moins-value sur réalisation d''actifs circulants',65);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (653,'Charges d''escompte de créances',65);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (654,'Différences de changes',65);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (655,'Ecarts de conversion des devises',65);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (656,'Charges financières diverses',65);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (657,'Charges financières diverses',65);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (658,'Charges financières diverses',65);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (659,'Charges financières diverses',65);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (66,'Charges exceptionnelles',6);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (660,'Amortissements et réductions de valeur exceptionnels (dotations)',66);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6600,'sur frais d''établissement',660);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6601,'sur immobilisations incorporelles',660);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6602,'sur immobilisations corporelles',660);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (661,'Réductions de valeur sur immobilisations financières (dotations)',66);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (662,'Provisions pour risques et charges exceptionnels',66);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (663,'Moins-values sur réalisations d''actifs immobilisés',66);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (664,'Autres charges exceptionnelles',66);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (665,'Autres charges exceptionnelles',66);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (666,'Autres charges exceptionnelles',66);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (667,'Autres charges exceptionnelles',66);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (668,'Autres charges exceptionnelles',66);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (669,' Charges exceptionnelles portées à l''actif au titre de frais de restructuration',66);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (67,'impôts sur le résultat',6);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (670,'Impôts belge sur le résultat de l''exercice',67);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6700,'Impôts et précomptes dus ou versés',670);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6701,'Excédents de versement d''impôts et de précomptes portés à l''actifs (-)',670);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6702,'Charges fiscales estimées',670);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (671,'Impôts belges sur le résultats d''exercices antérieures',67);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6710,'Suppléments d''impôt dus ou versés',671);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6711,'Suppléments d''impôts estimés',671);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6712,'Provisions fiscales constituées',671);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (672,'Impôts étrangers sur le résultat de l''exercice',67);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (673,'Impôts étrangers sur le résultat d''exercice antérieures',67);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (68,'Transferts aux réserves immunisées',6);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (69,'Affectations et prélévements',6);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (690,'Perte reportée de l''exercice précédent',69);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (691,'Dotation à la réserve légale',69);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (692,'Dotation aux autres réserves',69);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (693,'Bénéfice à reporter',69);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (694,'Rémunération du capital',69);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (695,'Administrateurs ou gérants',69);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (696,'Autres allocataires',69);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (70,'Chiffre d''affaire',7);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (700,'Ventes et prestations de services',70);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (701,'Ventes et prestations de services',70);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (702,'Ventes et prestations de services',70);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (703,'Ventes et prestations de services',70);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (704,'Ventes et prestations de services',70);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (705,'Ventes et prestations de services',70);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (706,'Ventes et prestations de services',70);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (707,'Ventes et prestations de services',70);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (709,'Remises, ristournes et rabais accordés(-)',70);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (71,'Variations des stocks et commandes en cours d''éxécution',7);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (712,'des en-cours de fabrication',71);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (713,'des produits finis',71);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (715,'des immeubles construits destinés à la vente',71);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (717,' des commandes en cours d''éxécution',71);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (7170,'Valeur d''acquisition',717);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (7171,'Bénéfice pris en compte',717);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (72,'Production immobilisée',7);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (74,'Autres produits d''exploitation',7);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (740,'Subsides d'' exploitation et montants compensatoires',74);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (741,'Plus-values sur réalisation courantes d'' immobilisations corporelles',74);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (742,'Plus-values sur réalisations de créances commerciales',74);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (743,'Produits d''exploitations divers',74 );
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (744,'Produits d''exploitations divers',74 );
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (745,'Produits d''exploitations divers',74 );
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (746,'Produits d''exploitations divers',74 );
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (747,'Produits d''exploitations divers',74 );
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (748,'Produits d''exploitations divers',74 );
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (749,'Produits d''exploitations divers',74 );
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (75,'Produits financiers',7);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (750,'Produits sur immobilisations financières',75);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (751,'Produits des actifs circulants',75);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (752,'Plus-value sur réalisations d''actis circulants',75);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (753,'Subsides en capital et intérêts',75);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (754,'Différences de change',75);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (755,'Ecarts de conversion des devises',75);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (756,'Produits financiers divers',75);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (757,'Produits financiers divers',75);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (758,'Produits financiers divers',75);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (759,'Produits financiers divers',75);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (76,'Produits exceptionnels',7);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (760,'Reprise d''amortissements et de réductions de valeur',76);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (7601,'sur immobilisations corporelles',760);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (7602,'sur immobilisations incorporelles',760);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (761,'Reprises de réductions de valeur sur immobilisations financières',76);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (762,'Reprises de provisions pour risques et charges exceptionnels',76);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (763,'Plus-value sur réalisation d''actifs immobilisé',76);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (764,'Autres produits exceptionnels',76);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (765,'Autres produits exceptionnels',76);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (766,'Autres produits exceptionnels',76);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (767,'Autres produits exceptionnels',76);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (768,'Autres produits exceptionnels',76);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (769,'Autres produits exceptionnels',76);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (77,'Régularisations d''impôts et reprises de provisions fiscales',7);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (771,'impôts belges sur le résultat',77);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (7710,'Régularisations d''impôts dus ou versé',771);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (7711,'Régularisations d''impôts estimés',771);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (7712,'Reprises de provisions fiscales',771);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (773,'Impôts étrangers sur le résultats',77);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (79,'Affectations et prélévements',7);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (790,'Bénéfice reporté de l''exercice précédent',79);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (791,'Prélévement sur le capital et les primes d''émission',79);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (792,'Prélévement sur les réserves',79);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (793,'Perte à reporter',79);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (794,'Intervention d''associés (ou du propriétaire) dans la perte',79);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (1,'Fonds propres, provisions pour risques et charges à plus d''un an',0);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (2,'Frais d''établissement, actifs immobilisés et créances à plus d''un an',0);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (3,'Stocks et commandes en cours d''éxécution',0);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (4,'Créances et dettes à un an au plus',0);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (5,'Placements de trésorerie et valeurs disponibles',0);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (6,'Charges',0);
|
||||
|
||||
insert into tmp_pcmn(pcm_val,pcm_lib,pcm_val_parent) values (7,'Produits',0);
|
||||
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
|
||||
/*
|
||||
* This file is part of PhpCompta.
|
||||
*
|
||||
* PhpCompta is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* PhpCompta is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with PhpCompta; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
CREATE SEQUENCE seq_jnt_use_dos
|
||||
START 1
|
||||
INCREMENT 1
|
||||
MAXVALUE 9223372036854775807
|
||||
MINVALUE 1
|
||||
CACHE 1;
|
||||
|
||||
create table jnt_use_dos
|
||||
(
|
||||
jnt_id integer DEFAULT nextval('seq_jnt_use_dos'::text) NOT NULL,
|
||||
use_id int4 not null references ac_users(use_id),
|
||||
dos_id int4 not null references ac_dossier(dos_id),
|
||||
primary key (use_id,dos_id)
|
||||
);
|
||||
create index fk_jnt_use_dos on jnt_use_dos(use_id);
|
||||
create index fk_jnt_dos_id on jnt_use_dos(dos_id);
|
||||
|
|
@ -1,97 +0,0 @@
|
|||
|
||||
|
||||
/*
|
||||
* This file is part of PhpCompta.
|
||||
*
|
||||
* PhpCompta is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* PhpCompta is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with PhpCompta; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
/* $Revision$ */
|
||||
create sequence s_jrn_def start 5;
|
||||
|
||||
create sequence s_grpt;
|
||||
create sequence s_jrn_op;
|
||||
create sequence s_jrn;
|
||||
|
||||
create table jrn_type
|
||||
(
|
||||
jrn_type_id char(3) not null primary key,
|
||||
jrn_desc text
|
||||
);
|
||||
|
||||
create table jrn_def
|
||||
(
|
||||
jrn_def_id integer default nextval('s_jrn_def') primary key,
|
||||
jrn_def_name text not null unique,
|
||||
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 bool default false,
|
||||
jrn_def_ech_lib text default null,
|
||||
jrn_def_type char(3) not null references jrn_type(jrn_type_id),
|
||||
jrn_def_code text not null
|
||||
|
||||
);
|
||||
create index fk_jrn_def_jrn_def_type on jrn_def (jrn_def_type);
|
||||
insert into jrn_type values ('FIN','Financier');
|
||||
insert into jrn_type values ('VEN','Vente');
|
||||
insert into jrn_type values ('ACH','Achat');
|
||||
insert into jrn_type values ('OD','Opérations Diverses');
|
||||
|
||||
insert into jrn_def values (1,'Financier','5* ','5*',null,null,5,5,false,null,'FIN','FIN-01');
|
||||
insert into jrn_def values (2,'Vente','4*','7*',null,null,1,3,true,'échéance','VEN','VEN-01');
|
||||
insert into jrn_def values (3,'Achat','6*','4*',null,null,1,3,true,'échéance','ACH','ACH-01');
|
||||
insert into jrn_def values (4,'Opération Diverses',null,null,null,null,5,5,false,null,'OD','OD-01');
|
||||
|
||||
create sequence s_jrnx;
|
||||
|
||||
create table jrn (
|
||||
jr_id integer default nextval('s_jrn') not null ,
|
||||
jr_def_id integer not null references jrn_def(jrn_def_id),
|
||||
jr_montant float not null,
|
||||
jr_comment text ,
|
||||
jr_date date ,
|
||||
jr_ech date ,
|
||||
jr_grpt_id integer not null,
|
||||
jr_rapt text,
|
||||
jr_internal text,
|
||||
jr_tech_date timestamp not null default now(),
|
||||
jr_tech_per integer not null
|
||||
|
||||
);
|
||||
alter table jrn add primary key (jr_id,jr_def_id);
|
||||
create unique index idx_jr_id on jrn(jr_id);
|
||||
create index fk_jrn_jr_def_id on jrn(jr_def_id);
|
||||
create table jrnx (
|
||||
j_id int4 default nextval('s_jrn_op') primary key,
|
||||
j_date date default now(),
|
||||
j_montant float default 0,
|
||||
j_poste int not null references tmp_pcmn(pcm_val),
|
||||
j_grpt integer not null,
|
||||
j_rapt text,
|
||||
j_jrn_def int4 not null references jrn_def(jrn_def_id),
|
||||
j_debit bool default true,
|
||||
j_text text,
|
||||
j_centralized bool default false,
|
||||
j_internal text ,
|
||||
j_tech_user text not null,
|
||||
j_tech_date timestamp not null default now(),
|
||||
j_tech_per integer
|
||||
);
|
||||
create index fk_jrnx_j_poste on jrnx (j_poste);
|
||||
create index fk_jrn_def on jrnx (j_jrn_def);
|
||||
|
|
@ -1,68 +0,0 @@
|
|||
/* $Revision$ */
|
||||
/*
|
||||
* This file is part of PhpCompta.
|
||||
*
|
||||
* PhpCompta is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* PhpCompta is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with PhpCompta; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
create sequence s_jrnaction;
|
||||
|
||||
create table jrn_action (
|
||||
ja_id integer not null default nextval('s_jrnaction') primary key,
|
||||
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 char(3) references jrn_type(jrn_type_id)
|
||||
);
|
||||
create index fk_jrn_action_ja_jrn_type on jrn_action(ja_jrn_type);
|
||||
--
|
||||
-- PostgreSQL database dump
|
||||
--
|
||||
|
||||
\connect - phpcompta
|
||||
|
||||
SET search_path = public, pg_catalog;
|
||||
|
||||
--
|
||||
-- Data for TOC entry 1 (OID 17800)
|
||||
-- Name: jrn_action; Type: TABLE DATA; Schema: public; Owner: phpcompta
|
||||
--
|
||||
-- menu vente
|
||||
INSERT INTO jrn_action VALUES (2, 'Voir', 'Voir toutes les factures', 'user_jrn.php', 'action=voir_jrn', 'FR', 'VEN');
|
||||
INSERT INTO jrn_action VALUES (4, 'Voir Impayés', 'Voir toutes les factures non payées', 'user_jrn.php', 'action=voir_jrn_non_paye', 'FR', 'VEN');
|
||||
INSERT INTO jrn_action VALUES (6, 'Recherche', 'Recherche dans le journal', 'user_jrn.php', 'action=search', 'FR', 'VEN');
|
||||
INSERT INTO jrn_action VALUES (1, 'Nouvelle', 'Création d''une facture', 'user_jrn.php', 'action=insert_vente&blank', 'FR', 'VEN');
|
||||
INSERT INTO jrn_action VALUES (5, 'Impression', 'Impression du journal', 'impress.php', 'filter=1&action=viewpdf&type=jrn', 'FR', 'VEN');
|
||||
|
||||
-- menu achat
|
||||
INSERT INTO jrn_action VALUES (10, 'Nouveau', 'Encode un nouvel achat (matériel, marchandises, services et biens divers)', 'user_jrn.php', 'action=new&blank', 'FR', 'ACH');
|
||||
INSERT INTO jrn_action VALUES (12, 'Voir', 'Voir toutes les factures', 'user_jrn.php', 'action=voir_jrn', 'FR', 'ACH');
|
||||
INSERT INTO jrn_action VALUES (14, 'Voir Impayés', 'Voir toutes les factures non payées', 'user_jrn.php', 'action=voir_jrn_non_paye', 'FR', 'ACH');
|
||||
INSERT INTO jrn_action VALUES (16, 'Impression', 'Impression du journal', 'impress.php', 'filter=1&action=viewpdf&type=jrn', 'FR', 'ACH');
|
||||
INSERT INTO jrn_action VALUES (18, 'Recherche', 'Recherche dans le journal', 'user_jrn.php', 'action=search', 'FR', 'ACH');
|
||||
|
||||
-- menu banque
|
||||
INSERT INTO jrn_action VALUES (20, 'Nouveau', 'Encode un nouvel achat (matériel, marchandises, services et biens divers)', 'user_jrn.php', 'action=new&blank', 'FR', 'FIN');
|
||||
INSERT INTO jrn_action VALUES (22, 'Voir', 'Voir toutes les factures', 'user_jrn.php', 'action=voir_jrn', 'FR', 'FIN');
|
||||
INSERT INTO jrn_action VALUES (24, 'Impression', 'Impression du journal', 'impress.php', 'filter=1&action=viewpdf&type=jrn', 'FR', 'FIN');
|
||||
INSERT INTO jrn_action VALUES (26, 'Recherche', 'Recherche dans le journal', 'user_jrn.php', 'action=search', 'FR', 'FIN');
|
||||
|
||||
-- Menu opérations diverses
|
||||
INSERT INTO jrn_action VALUES (30, 'Nouveau', null, 'user_jrn.php', 'action=new&blank', 'FR', 'OD');
|
||||
INSERT INTO jrn_action VALUES (32, 'Voir', 'Voir toutes les factures', 'user_jrn.php', 'action=voir_jrn', 'FR', 'OD');
|
||||
INSERT INTO jrn_action VALUES (34, 'Impression', 'Impression du journal', 'impress.php', 'filter=1&action=viewpdf&type=jrn', 'FR', 'OD');
|
||||
INSERT INTO jrn_action VALUES (36, 'Recherche', 'Recherche dans le journal', 'user_jrn.php', 'action=search', 'FR', 'OD');
|
||||
|
||||
2512
sql/mod-be.sql
2512
sql/mod-be.sql
File diff suppressed because it is too large
Load diff
|
|
@ -1,26 +0,0 @@
|
|||
/* $Revision$ */
|
||||
/*
|
||||
* This file is part of PhpCompta.
|
||||
*
|
||||
* PhpCompta is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* PhpCompta is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with PhpCompta; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
create sequence s_modid;
|
||||
|
||||
create table modeledef (
|
||||
mod_id integer not null default nextval('s_modid') primary key,
|
||||
mod_name text not null,
|
||||
mod_desc text
|
||||
);
|
||||
insert into modeledef values (1,'(BE) Basique','Comptabilité Belge, tout doit être adaptée');
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
-- Table: public.priv_user
|
||||
|
||||
-- DROP TABLE public.priv_user;
|
||||
|
||||
CREATE TABLE public.priv_user
|
||||
(
|
||||
priv_id int4 NOT NULL DEFAULT nextval('seq_priv_user'::text),
|
||||
priv_jnt int4 NOT NULL,
|
||||
priv_priv text
|
||||
) WITH OIDS;
|
||||
|
||||
|
||||
|
|
@ -1,270 +0,0 @@
|
|||
--
|
||||
-- PostgreSQL database dump
|
||||
--
|
||||
|
||||
SET search_path = public, pg_catalog;
|
||||
|
||||
--
|
||||
-- TOC entry 2 (OID 21938)
|
||||
-- Name: users_id; Type: SEQUENCE; Schema: public; Owner: webcompta
|
||||
--
|
||||
|
||||
CREATE SEQUENCE users_id
|
||||
START 1
|
||||
INCREMENT 1
|
||||
MAXVALUE 9223372036854775807
|
||||
MINVALUE 1
|
||||
CACHE 1;
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 10 (OID 21940)
|
||||
-- Name: ac_users; Type: TABLE; Schema: public; Owner: webcompta
|
||||
--
|
||||
|
||||
CREATE TABLE ac_users (
|
||||
use_id integer DEFAULT nextval('users_id'::text) NOT NULL,
|
||||
use_first_name text,
|
||||
use_name text,
|
||||
use_login text NOT NULL,
|
||||
use_active integer DEFAULT 0,
|
||||
use_pass text,
|
||||
use_admin integer,
|
||||
CHECK (((use_active = 0) OR (use_active = 1)))
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 4 (OID 21955)
|
||||
-- Name: dossier_id; Type: SEQUENCE; Schema: public; Owner: webcompta
|
||||
--
|
||||
|
||||
CREATE SEQUENCE dossier_id
|
||||
START 1
|
||||
INCREMENT 1
|
||||
MAXVALUE 9223372036854775807
|
||||
MINVALUE 1
|
||||
CACHE 1;
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 11 (OID 21957)
|
||||
-- Name: ac_dossier; Type: TABLE; Schema: public; Owner: webcompta
|
||||
--
|
||||
|
||||
CREATE TABLE ac_dossier (
|
||||
dos_id integer DEFAULT nextval('dossier_id'::text) NOT NULL,
|
||||
dos_name text NOT NULL,
|
||||
dos_description text,
|
||||
dos_jnt_user integer DEFAULT 0
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 12 (OID 21964)
|
||||
-- Name: jnt_use_dos; Type: TABLE; Schema: public; Owner: webcompta
|
||||
--
|
||||
|
||||
CREATE TABLE jnt_use_dos (
|
||||
jnt_id integer DEFAULT nextval('seq_jnt_use_dos'::text) NOT NULL,
|
||||
use_id integer NOT NULL,
|
||||
dos_id integer NOT NULL
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 13 (OID 21967)
|
||||
-- Name: priv_user; Type: TABLE; Schema: public; Owner: webcompta
|
||||
--
|
||||
|
||||
CREATE TABLE priv_user (
|
||||
priv_id integer DEFAULT nextval('seq_priv_user'::text) NOT NULL,
|
||||
priv_jnt integer NOT NULL,
|
||||
priv_priv text
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 6 (OID 21973)
|
||||
-- Name: seq_jnt_use_dos; Type: SEQUENCE; Schema: public; Owner: webcompta
|
||||
--
|
||||
|
||||
CREATE SEQUENCE seq_jnt_use_dos
|
||||
START 1
|
||||
INCREMENT 1
|
||||
MAXVALUE 9223372036854775807
|
||||
MINVALUE 1
|
||||
CACHE 1;
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 8 (OID 21975)
|
||||
-- Name: seq_priv_user; Type: SEQUENCE; Schema: public; Owner: webcompta
|
||||
--
|
||||
|
||||
CREATE SEQUENCE seq_priv_user
|
||||
START 1
|
||||
INCREMENT 1
|
||||
MAXVALUE 9223372036854775807
|
||||
MINVALUE 1
|
||||
CACHE 1;
|
||||
|
||||
|
||||
--
|
||||
-- Data for TOC entry 21 (OID 21940)
|
||||
-- Name: ac_users; Type: TABLE DATA; Schema: public; Owner: webcompta
|
||||
--
|
||||
|
||||
COPY ac_users (use_id, use_first_name, use_name, use_login, use_active, use_pass, use_admin) FROM stdin;
|
||||
1 \N \N webcompta 1 486348d8b9ac03742368d8736244e958 1
|
||||
\.
|
||||
|
||||
|
||||
--
|
||||
-- Data for TOC entry 22 (OID 21957)
|
||||
-- Name: ac_dossier; Type: TABLE DATA; Schema: public; Owner: webcompta
|
||||
--
|
||||
|
||||
COPY ac_dossier (dos_id, dos_name, dos_description, dos_jnt_user) FROM stdin;
|
||||
\.
|
||||
|
||||
|
||||
--
|
||||
-- Data for TOC entry 23 (OID 21964)
|
||||
-- Name: jnt_use_dos; Type: TABLE DATA; Schema: public; Owner: webcompta
|
||||
--
|
||||
|
||||
COPY jnt_use_dos (jnt_id, use_id, dos_id) FROM stdin;
|
||||
\.
|
||||
|
||||
|
||||
--
|
||||
-- Data for TOC entry 24 (OID 21967)
|
||||
-- Name: priv_user; Type: TABLE DATA; Schema: public; Owner: webcompta
|
||||
--
|
||||
|
||||
COPY priv_user (priv_id, priv_jnt, priv_priv) FROM stdin;
|
||||
\.
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 18 (OID 22497)
|
||||
-- Name: jnt_idx; Type: INDEX; Schema: public; Owner: webcompta
|
||||
--
|
||||
|
||||
CREATE INDEX jnt_idx ON jnt_use_dos USING btree (use_id, dos_id);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 14 (OID 22498)
|
||||
-- Name: ac_users_pkey; Type: CONSTRAINT; Schema: public; Owner: webcompta
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY ac_users
|
||||
ADD CONSTRAINT ac_users_pkey PRIMARY KEY (use_id);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 15 (OID 22500)
|
||||
-- Name: ac_users_use_login_key; Type: CONSTRAINT; Schema: public; Owner: webcompta
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY ac_users
|
||||
ADD CONSTRAINT ac_users_use_login_key UNIQUE (use_login);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 17 (OID 22504)
|
||||
-- Name: ac_dossier_pkey; Type: CONSTRAINT; Schema: public; Owner: webcompta
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY ac_dossier
|
||||
ADD CONSTRAINT ac_dossier_pkey PRIMARY KEY (dos_id);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 16 (OID 22506)
|
||||
-- Name: ac_dossier_dos_name_key; Type: CONSTRAINT; Schema: public; Owner: webcompta
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY ac_dossier
|
||||
ADD CONSTRAINT ac_dossier_dos_name_key UNIQUE (dos_name);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 19 (OID 22508)
|
||||
-- Name: jnt_use_dos_pkey; Type: CONSTRAINT; Schema: public; Owner: webcompta
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY jnt_use_dos
|
||||
ADD CONSTRAINT jnt_use_dos_pkey PRIMARY KEY (jnt_id);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 25 (OID 22510)
|
||||
-- Name: $2; Type: CONSTRAINT; Schema: public; Owner: webcompta
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY jnt_use_dos
|
||||
ADD CONSTRAINT "$2" FOREIGN KEY (use_id) REFERENCES ac_users(use_id) ON UPDATE NO ACTION ON DELETE NO ACTION;
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 26 (OID 22514)
|
||||
-- Name: $3; Type: CONSTRAINT; Schema: public; Owner: webcompta
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY jnt_use_dos
|
||||
ADD CONSTRAINT "$3" FOREIGN KEY (dos_id) REFERENCES ac_dossier(dos_id) ON UPDATE NO ACTION ON DELETE NO ACTION;
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 20 (OID 22518)
|
||||
-- Name: priv_user_pkey; Type: CONSTRAINT; Schema: public; Owner: webcompta
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY priv_user
|
||||
ADD CONSTRAINT priv_user_pkey PRIMARY KEY (priv_id);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 27 (OID 22520)
|
||||
-- Name: fk_jnt; Type: CONSTRAINT; Schema: public; Owner: webcompta
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY priv_user
|
||||
ADD CONSTRAINT fk_jnt FOREIGN KEY (priv_jnt) REFERENCES jnt_use_dos(jnt_id) ON UPDATE NO ACTION ON DELETE NO ACTION;
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 3 (OID 21938)
|
||||
-- Name: users_id; Type: SEQUENCE SET; Schema: public; Owner: webcompta
|
||||
--
|
||||
|
||||
SELECT pg_catalog.setval ('users_id', 29, true);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 5 (OID 21955)
|
||||
-- Name: dossier_id; Type: SEQUENCE SET; Schema: public; Owner: webcompta
|
||||
--
|
||||
|
||||
SELECT pg_catalog.setval ('dossier_id', 22, true);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 7 (OID 21973)
|
||||
-- Name: seq_jnt_use_dos; Type: SEQUENCE SET; Schema: public; Owner: webcompta
|
||||
--
|
||||
|
||||
SELECT pg_catalog.setval ('seq_jnt_use_dos', 72, true);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 9 (OID 21975)
|
||||
-- Name: seq_priv_user; Type: SEQUENCE SET; Schema: public; Owner: webcompta
|
||||
--
|
||||
|
||||
SELECT pg_catalog.setval ('seq_priv_user', 72, true);
|
||||
|
||||
|
||||
270
sql/struct.sql
270
sql/struct.sql
|
|
@ -1,270 +0,0 @@
|
|||
--
|
||||
-- PostgreSQL database dump
|
||||
--
|
||||
|
||||
SET search_path = public, pg_catalog;
|
||||
|
||||
--
|
||||
-- TOC entry 2 (OID 21938)
|
||||
-- Name: users_id; Type: SEQUENCE; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
CREATE SEQUENCE users_id
|
||||
START 1
|
||||
INCREMENT 1
|
||||
MAXVALUE 9223372036854775807
|
||||
MINVALUE 1
|
||||
CACHE 1;
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 10 (OID 21940)
|
||||
-- Name: ac_users; Type: TABLE; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
CREATE TABLE ac_users (
|
||||
use_id integer DEFAULT nextval('users_id'::text) NOT NULL,
|
||||
use_first_name text,
|
||||
use_name text,
|
||||
use_login text NOT NULL,
|
||||
use_active integer DEFAULT 0,
|
||||
use_pass text,
|
||||
use_admin integer,
|
||||
CHECK (((use_active = 0) OR (use_active = 1)))
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 4 (OID 21955)
|
||||
-- Name: dossier_id; Type: SEQUENCE; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
CREATE SEQUENCE dossier_id
|
||||
START 1
|
||||
INCREMENT 1
|
||||
MAXVALUE 9223372036854775807
|
||||
MINVALUE 1
|
||||
CACHE 1;
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 11 (OID 21957)
|
||||
-- Name: ac_dossier; Type: TABLE; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
CREATE TABLE ac_dossier (
|
||||
dos_id integer DEFAULT nextval('dossier_id'::text) NOT NULL,
|
||||
dos_name text NOT NULL,
|
||||
dos_description text,
|
||||
dos_jnt_user integer DEFAULT 0
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 12 (OID 21964)
|
||||
-- Name: jnt_use_dos; Type: TABLE; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
CREATE TABLE jnt_use_dos (
|
||||
jnt_id integer DEFAULT nextval('seq_jnt_use_dos'::text) NOT NULL,
|
||||
use_id integer NOT NULL,
|
||||
dos_id integer NOT NULL
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 13 (OID 21967)
|
||||
-- Name: priv_user; Type: TABLE; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
CREATE TABLE priv_user (
|
||||
priv_id integer DEFAULT nextval('seq_priv_user'::text) NOT NULL,
|
||||
priv_jnt integer NOT NULL,
|
||||
priv_priv text
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 6 (OID 21973)
|
||||
-- Name: seq_jnt_use_dos; Type: SEQUENCE; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
CREATE SEQUENCE seq_jnt_use_dos
|
||||
START 1
|
||||
INCREMENT 1
|
||||
MAXVALUE 9223372036854775807
|
||||
MINVALUE 1
|
||||
CACHE 1;
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 8 (OID 21975)
|
||||
-- Name: seq_priv_user; Type: SEQUENCE; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
CREATE SEQUENCE seq_priv_user
|
||||
START 1
|
||||
INCREMENT 1
|
||||
MAXVALUE 9223372036854775807
|
||||
MINVALUE 1
|
||||
CACHE 1;
|
||||
|
||||
|
||||
--
|
||||
-- Data for TOC entry 21 (OID 21940)
|
||||
-- Name: ac_users; Type: TABLE DATA; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
COPY ac_users (use_id, use_first_name, use_name, use_login, use_active, use_pass, use_admin) FROM stdin;
|
||||
1 \N \N phpcompta 1 486348d8b9ac03742368d8736244e958 1
|
||||
\.
|
||||
|
||||
|
||||
--
|
||||
-- Data for TOC entry 22 (OID 21957)
|
||||
-- Name: ac_dossier; Type: TABLE DATA; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
COPY ac_dossier (dos_id, dos_name, dos_description, dos_jnt_user) FROM stdin;
|
||||
\.
|
||||
|
||||
|
||||
--
|
||||
-- Data for TOC entry 23 (OID 21964)
|
||||
-- Name: jnt_use_dos; Type: TABLE DATA; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
COPY jnt_use_dos (jnt_id, use_id, dos_id) FROM stdin;
|
||||
\.
|
||||
|
||||
|
||||
--
|
||||
-- Data for TOC entry 24 (OID 21967)
|
||||
-- Name: priv_user; Type: TABLE DATA; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
COPY priv_user (priv_id, priv_jnt, priv_priv) FROM stdin;
|
||||
\.
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 18 (OID 22497)
|
||||
-- Name: jnt_idx; Type: INDEX; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
CREATE INDEX jnt_idx ON jnt_use_dos USING btree (use_id, dos_id);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 14 (OID 22498)
|
||||
-- Name: ac_users_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY ac_users
|
||||
ADD CONSTRAINT ac_users_pkey PRIMARY KEY (use_id);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 15 (OID 22500)
|
||||
-- Name: ac_users_use_login_key; Type: CONSTRAINT; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY ac_users
|
||||
ADD CONSTRAINT ac_users_use_login_key UNIQUE (use_login);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 17 (OID 22504)
|
||||
-- Name: ac_dossier_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY ac_dossier
|
||||
ADD CONSTRAINT ac_dossier_pkey PRIMARY KEY (dos_id);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 16 (OID 22506)
|
||||
-- Name: ac_dossier_dos_name_key; Type: CONSTRAINT; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY ac_dossier
|
||||
ADD CONSTRAINT ac_dossier_dos_name_key UNIQUE (dos_name);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 19 (OID 22508)
|
||||
-- Name: jnt_use_dos_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY jnt_use_dos
|
||||
ADD CONSTRAINT jnt_use_dos_pkey PRIMARY KEY (jnt_id);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 25 (OID 22510)
|
||||
-- Name: $2; Type: CONSTRAINT; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY jnt_use_dos
|
||||
ADD CONSTRAINT "$2" FOREIGN KEY (use_id) REFERENCES ac_users(use_id) ON UPDATE NO ACTION ON DELETE NO ACTION;
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 26 (OID 22514)
|
||||
-- Name: $3; Type: CONSTRAINT; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY jnt_use_dos
|
||||
ADD CONSTRAINT "$3" FOREIGN KEY (dos_id) REFERENCES ac_dossier(dos_id) ON UPDATE NO ACTION ON DELETE NO ACTION;
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 20 (OID 22518)
|
||||
-- Name: priv_user_pkey; Type: CONSTRAINT; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY priv_user
|
||||
ADD CONSTRAINT priv_user_pkey PRIMARY KEY (priv_id);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 27 (OID 22520)
|
||||
-- Name: fk_jnt; Type: CONSTRAINT; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY priv_user
|
||||
ADD CONSTRAINT fk_jnt FOREIGN KEY (priv_jnt) REFERENCES jnt_use_dos(jnt_id) ON UPDATE NO ACTION ON DELETE NO ACTION;
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 3 (OID 21938)
|
||||
-- Name: users_id; Type: SEQUENCE SET; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
SELECT pg_catalog.setval ('users_id', 29, true);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 5 (OID 21955)
|
||||
-- Name: dossier_id; Type: SEQUENCE SET; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
SELECT pg_catalog.setval ('dossier_id', 22, true);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 7 (OID 21973)
|
||||
-- Name: seq_jnt_use_dos; Type: SEQUENCE SET; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
SELECT pg_catalog.setval ('seq_jnt_use_dos', 72, true);
|
||||
|
||||
|
||||
--
|
||||
-- TOC entry 9 (OID 21975)
|
||||
-- Name: seq_priv_user; Type: SEQUENCE SET; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
SELECT pg_catalog.setval ('seq_priv_user', 72, true);
|
||||
|
||||
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
-- Table: public.theme
|
||||
|
||||
-- DROP TABLE public.theme;
|
||||
|
||||
CREATE TABLE public.theme
|
||||
(
|
||||
the_name text NOT NULL,
|
||||
the_filestyle text,
|
||||
the_filebutton text
|
||||
) WITH OIDS;
|
||||
|
||||
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
|
||||
/*
|
||||
* This file is part of PhpCompta.
|
||||
*
|
||||
* PhpCompta is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* PhpCompta is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with PhpCompta; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
drop table tmp_pcmn
|
||||
|
||||
;
|
||||
create table tmp_pcmn
|
||||
(
|
||||
pcm_val int4 primary key,
|
||||
pcm_lib text,
|
||||
pcm_val_parent int4 default 0,
|
||||
pcm_country char(2) not null default 'BE'
|
||||
)
|
||||
;
|
||||
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
--
|
||||
-- PostgreSQL database dump
|
||||
--
|
||||
|
||||
SET search_path = public, pg_catalog;
|
||||
|
||||
--
|
||||
-- TOC entry 2 (OID 51704)
|
||||
-- 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
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- Data for TOC entry 3 (OID 51704)
|
||||
-- Name: tva_rate; Type: TABLE DATA; Schema: public; Owner: phpcompta
|
||||
--
|
||||
|
||||
INSERT INTO tva_rate VALUES (1, '21%', 0.21, 'Tva applicable à tout ce qui bien et service divers', '411,451');
|
||||
INSERT INTO tva_rate VALUES (3, '0%', 0, 'Tva applicable lors de vente/achat intracommunautaire', '411,451');
|
||||
INSERT INTO tva_rate VALUES (2, '6%', 0.06, 'Tva applicable aux journaux et livres', '411,451');
|
||||
|
||||
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
update version set val=2;
|
||||
alter table jrn_def add jrn_def_fiche_deb text ;
|
||||
alter table jrn_def add jrn_def_fiche_cred text ;
|
||||
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
/* $Revision$ */
|
||||
/*
|
||||
* This file is part of PhpCompta.
|
||||
*
|
||||
* PhpCompta is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* PhpCompta is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with PhpCompta; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
update version set val=3;
|
||||
create sequence s_jrnaction;
|
||||
|
||||
create table jrn_action (
|
||||
ja_id integer not null default nextval('s_jrnaction') primary key,
|
||||
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 char(3) references jrn_type(jrn_type_id)
|
||||
);
|
||||
insert into jrn_action (ja_name,ja_desc,ja_url,ja_action,ja_jrn_type) VALUES (
|
||||
'Nouvelle','Création d\'une facture','user_jrn.php','action=insert_vente','VEN'
|
||||
);
|
||||
insert into jrn_action (ja_name,ja_desc,ja_url,ja_action,ja_jrn_type) VALUES (
|
||||
'Voir','Voir toutes les factures','user_jrn.php','action=voir_vente','VEN'
|
||||
);
|
||||
insert into jrn_action (ja_name,ja_desc,ja_url,ja_action,ja_jrn_type) VALUES (
|
||||
'Voir Impayés','Voir toutes les factures non payées','user_jrn.php','action=voir_vente_non_paye','VEN'
|
||||
);
|
||||
insert into jrn_action (ja_name,ja_desc,ja_url,ja_action,ja_jrn_type) VALUES (
|
||||
'Impression','Impression du journal','user_jrn.php','action=impress','VEN'
|
||||
);
|
||||
insert into jrn_action (ja_name,ja_desc,ja_url,ja_action,ja_jrn_type) VALUES (
|
||||
'Recherche','Recherche dans le journal','user_jrn.php','action=search_ven','VEN'
|
||||
);
|
||||
|
|
@ -1 +0,0 @@
|
|||
update version set val=4;
|
||||
|
|
@ -1 +0,0 @@
|
|||
update version set val=5;
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
-- change for new dossier
|
||||
--
|
||||
delete from jrn_action where ja_name='Impression' or ja_name='Recherche';
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
update version set val=2;
|
||||
alter table jrn_def add jrn_def_fiche_deb text ;
|
||||
alter table jrn_def add jrn_def_fiche_cred text ;
|
||||
|
||||
|
|
@ -1,46 +0,0 @@
|
|||
/* $Revision$ */
|
||||
/*
|
||||
* This file is part of PhpCompta.
|
||||
*
|
||||
* PhpCompta is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* PhpCompta is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with PhpCompta; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
update version set val=3;
|
||||
|
||||
create sequence s_jrnaction;
|
||||
|
||||
create table jrn_action (
|
||||
ja_id integer not null default nextval('s_jrnaction') primary key,
|
||||
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 char(3) references jrn_type(jrn_type_id)
|
||||
);
|
||||
insert into jrn_action (ja_name,ja_desc,ja_url,ja_action,ja_jrn_type) VALUES (
|
||||
'Nouvelle','Création d\'une facture','user_jrn.php','action=insert_vente','VEN'
|
||||
);
|
||||
insert into jrn_action (ja_name,ja_desc,ja_url,ja_action,ja_jrn_type) VALUES (
|
||||
'Voir','Voir toutes les factures','user_jrn.php','action=voir_vente','VEN'
|
||||
);
|
||||
insert into jrn_action (ja_name,ja_desc,ja_url,ja_action,ja_jrn_type) VALUES (
|
||||
'Voir Impayés','Voir toutes les factures non payées','user_jrn.php','action=voir_vente_non_paye','VEN'
|
||||
);
|
||||
insert into jrn_action (ja_name,ja_desc,ja_url,ja_action,ja_jrn_type) VALUES (
|
||||
'Impression','Impression du journal','user_jrn.php','action=impress','VEN'
|
||||
);
|
||||
insert into jrn_action (ja_name,ja_desc,ja_url,ja_action,ja_jrn_type) VALUES (
|
||||
'Recherche','Recherche dans le journal','user_jrn.php','action=search_ven','VEN'
|
||||
);
|
||||
|
|
@ -1 +0,0 @@
|
|||
update version set val=4;
|
||||
|
|
@ -1 +0,0 @@
|
|||
update version set val=5;
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
|
||||
/*
|
||||
* This file is part of PhpCompta.
|
||||
*
|
||||
* PhpCompta is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* PhpCompta is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with PhpCompta; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
create table user_pref(
|
||||
pref_user text not null primary key,
|
||||
pref_periode integer not null
|
||||
);
|
||||
|
|
@ -1,53 +0,0 @@
|
|||
|
||||
/*
|
||||
* This file is part of PhpCompta.
|
||||
*
|
||||
* PhpCompta is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* PhpCompta is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with PhpCompta; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
create sequence s_user_jrn;
|
||||
create sequence s_user_act;
|
||||
|
||||
create table user_sec_jrn (
|
||||
uj_id integer default nextval('s_user_jrn') primary key,
|
||||
uj_login text,
|
||||
uj_jrn_id integer references jrn_def(jrn_def_id),
|
||||
uj_priv text
|
||||
|
||||
);
|
||||
create index fk_user_sec_jrn on user_sec_jrn(uj_jrn_id);
|
||||
|
||||
create table action (
|
||||
ac_id integer not null primary key,
|
||||
ac_description text not null
|
||||
);
|
||||
create unique index x_act on action (ac_description) ;
|
||||
create table user_sec_act (
|
||||
ua_id integer default nextval('s_user_act') primary key,
|
||||
ua_login text,
|
||||
ua_act_id integer references action(ac_id)
|
||||
);
|
||||
create index fk_user_sec_act on user_sec_act (ua_act_id);
|
||||
create unique index x_usr_jrn on user_sec_jrn (uj_login,uj_jrn_id);
|
||||
insert into action (ac_id,ac_description) values (1,'Journaux');
|
||||
insert into action (ac_id,ac_description) values (2,'Facturation');
|
||||
insert into action (ac_id,ac_description) values (3,'Fiche Lecture');
|
||||
insert into action (ac_id,ac_description) values (4,'Impression');
|
||||
insert into action (ac_id,ac_description) values (5,'Formulaire');
|
||||
insert into action (ac_id,ac_description) values (6,'Mise à jour Plan Comptable');
|
||||
insert into action (ac_id,ac_description) values (7,'Gestion Journaux');
|
||||
insert into action (ac_id,ac_description) values (8,'Paramètres');
|
||||
insert into action (ac_id,ac_description) values (9,'Sécurité');
|
||||
insert into action (ac_id,ac_description) values (10,'Centralise');
|
||||
insert into action (ac_id,ac_description) values (14,'Fiche Ecriture');
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
-- Table: public.version
|
||||
|
||||
-- DROP TABLE public.version;
|
||||
|
||||
CREATE TABLE public.version
|
||||
(
|
||||
val int4
|
||||
) WITH OIDS;
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue