From da60b7b9bbbb887ffae10405f1c85f3028887c1f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 24 Jul 2004 00:43:27 +0000 Subject: [PATCH] =?UTF-8?q?L'int=E9gralit=E9=20de=20la=20description=20du?= =?UTF-8?q?=20plan=20comptable=20PCG99=20version=20ABREGE=20est=20charg=E9?= =?UTF-8?q?=20en=20base.=20Cela=20servira=20a=20l'am=E9lioration=20du=20mo?= =?UTF-8?q?dule=20compta=20de=20Dolibarr.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mysql/data/data.sql | 112 ++++++++++++++++++++-- mysql/migration/1.1.0-1.2.0-RC1.sql | 119 +++++++++++++++++++++--- mysql/tables/llx_c_accountingsystem.sql | 8 +- 3 files changed, 215 insertions(+), 24 deletions(-) diff --git a/mysql/data/data.sql b/mysql/data/data.sql index 103e08c4fbf..21fac57a788 100644 --- a/mysql/data/data.sql +++ b/mysql/data/data.sql @@ -487,13 +487,107 @@ INSERT INTO llx_c_civilite (rowid, fk_pays, civilite, active) VALUES (7, 2, 'Ma -- --- Descriptif des plans comptables +-- Descriptif du plan comptable FR PCG99-ABREGE -- -INSERT INTO llx_c_accountingsystem (rowid, fk_pays, type, label, account_format, account_format2) VALUES (1,1,'CASH','Caisse','530','\d'); -INSERT INTO llx_c_accountingsystem (rowid, fk_pays, type, label, account_format, account_format2) VALUES (2,1,'CASH','Caisse siège social','531','\d'); - -INSERT INTO llx_c_accountingsystem (rowid, fk_pays, type, label, account_format, account_format2) VALUES (3,1,'BANK','Banque','512','\d'); -INSERT INTO llx_c_accountingsystem (rowid, fk_pays, type, label, account_format, account_format2) VALUES (4,1,'BANK','Banque - compte chèques postaux','514','\d'); -INSERT INTO llx_c_accountingsystem (rowid, fk_pays, type, label, account_format, account_format2) VALUES (5,1,'BANK','Autre organisme financier','518','\d'); - - +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (1,1,'PCG99-ABREGE','XXXXXX','Capital','101'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (2,1,'PCG99-ABREGE','XXXXXX','Ecarts de réévaluation ','105'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (3,1,'PCG99-ABREGE','XXXXXX','Réserve légale','1061'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (4,1,'PCG99-ABREGE','XXXXXX','Réserves statutaires ou contractuelles ','1063'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (5,1,'PCG99-ABREGE','XXXXXX','Réserves réglementées ','1064'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (6,1,'PCG99-ABREGE','XXXXXX','Autres réserves','1068'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (7,1,'PCG99-ABREGE','XXXXXX','Compte de l''exploitant','108'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (8,1,'PCG99-ABREGE','XXXXXX','résultat de l''exercice ','12'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (9,1,'PCG99-ABREGE','XXXXXX','Amortissements dérogatoires ','145'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (10,1,'PCG99-ABREGE','XXXXXX','Provision spéciale de réévaluation ','146'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (11,1,'PCG99-ABREGE','XXXXXX','Plus-values réinvesties ','147'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (12,1,'PCG99-ABREGE','XXXXXX','Autres provisions réglementées ','148'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (13,1,'PCG99-ABREGE','XXXXXX','Provisions pour risques et charges ','15'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (14,1,'PCG99-ABREGE','XXXXXX','emprunts et dettes assimilees','16'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (15,1,'PCG99-ABREGE','XXXXXX','immobilisations incorporelles','20'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (16,1,'PCG99-ABREGE','XXXXXX','Frais d''établissement','201'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (17,1,'PCG99-ABREGE','XXXXXX','Droit au bail','206'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (18,1,'PCG99-ABREGE','XXXXXX','Fonds commercial','207'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (19,1,'PCG99-ABREGE','XXXXXX','Autres immobilisations incorporelles ','208'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (20,1,'PCG99-ABREGE','XXXXXX','immobilisations corporelles','21'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (21,1,'PCG99-ABREGE','XXXXXX','immobilisations en cours','23'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (22,1,'PCG99-ABREGE','XXXXXX','autres immobilisations financieres ','27'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (23,1,'PCG99-ABREGE','XXXXXX','Amortissements des immobilisations incorporelles ','280'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (24,1,'PCG99-ABREGE','XXXXXX','Amortissements des immobilisations corporelles ','281'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (25,1,'PCG99-ABREGE','XXXXXX','Provisions pour dépréciation des immobilisations incorporelles ','290'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (26,1,'PCG99-ABREGE','XXXXXX','Provisions pour dépréciation des immobilisations corporelles ','291'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (27,1,'PCG99-ABREGE','XXXXXX','Provisions pour dépréciation des autres immobilisations financières ','297'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (28,1,'PCG99-ABREGE','XXXXXX','matieres premières ','31'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (29,1,'PCG99-ABREGE','XXXXXX','autres approvisionnements','32'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (30,1,'PCG99-ABREGE','XXXXXX','en-cours de production de biens ','33'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (31,1,'PCG99-ABREGE','XXXXXX','en-cours de production de services ','34'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (32,1,'PCG99-ABREGE','XXXXXX','stocks de produits','35'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (33,1,'PCG99-ABREGE','XXXXXX','stocks de marchandises','37'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (34,1,'PCG99-ABREGE','XXXXXX','Provisions pour dépréciation des matières premières ','391'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (35,1,'PCG99-ABREGE','XXXXXX','Provisions pour dépréciation des autres approvisionnements ','392'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (36,1,'PCG99-ABREGE','XXXXXX','Provisions pour dépréciation des en-cours de production de biens ','393'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (37,1,'PCG99-ABREGE','XXXXXX','Provisions pour dépréciation des en-cours de production de services ','394'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (38,1,'PCG99-ABREGE','XXXXXX','Provisions pour dépréciation des stocks de produits ','395'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (39,1,'PCG99-ABREGE','XXXXXX','Provisions pour dépréciation des stocks de marchandises ','397'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (40,1,'PCG99-ABREGE','XXXXXX','Fournisseurs et Comptes rattachés ','400'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (41,1,'PCG99-ABREGE','XXXXXX','Fournisseurs débiteurs','409'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (42,1,'PCG99-ABREGE','XXXXXX','Clients et Comptes rattachés ','410'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (43,1,'PCG99-ABREGE','XXXXXX','Clients créditeurs','419'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (44,1,'PCG99-ABREGE','XXXXXX','Personnel','421'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (45,1,'PCG99-ABREGE','XXXXXX','Personnel','428'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (46,1,'PCG99-ABREGE','XXXXXX','Sécurité sociale et autres organismes sociaux ','43'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (47,1,'PCG99-ABREGE','XXXXXX','Etat','444'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (48,1,'PCG99-ABREGE','XXXXXX','Etat','445'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (49,1,'PCG99-ABREGE','XXXXXX','Autres impôts, taxes et versements assimilés ','447'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (50,1,'PCG99-ABREGE','XXXXXX','Groupe et associes','45'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (51,1,'PCG99-ABREGE','XXXXXX','Associés','455'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (52,1,'PCG99-ABREGE','XXXXXX','Débiteurs divers et créditeurs divers ','46'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (53,1,'PCG99-ABREGE','XXXXXX','comptes transitoires ou d''attente ','47'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (54,1,'PCG99-ABREGE','XXXXXX','Charges à répartir sur plusieurs exercices ','481'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (55,1,'PCG99-ABREGE','XXXXXX','Charges constatées d''avance ','486'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (56,1,'PCG99-ABREGE','XXXXXX','Produits constatés d''avance ','487'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (57,1,'PCG99-ABREGE','XXXXXX','Provisions pour dépréciation des comptes de clients ','491'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (58,1,'PCG99-ABREGE','XXXXXX','Provisions pour dépréciation des comptes de débiteurs divers ','496'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (59,1,'PCG99-ABREGE','XXXXXX','valeurs mobilières de placement ','50'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (60,1,'PCG99-ABREGE','BANK','banques, établissements financiers et assimilés ','51'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (61,1,'PCG99-ABREGE','CASH','Caisse','53'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (62,1,'PCG99-ABREGE','XXXXXX','régies d''avance et accréditifs','54'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (63,1,'PCG99-ABREGE','XXXXXX','virements internes','58'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (64,1,'PCG99-ABREGE','XXXXXX','Provisions pour dépréciation des valeurs mobilières de placement ','590'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (65,1,'PCG99-ABREGE','XXXXXX','Achats ','60'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (66,1,'PCG99-ABREGE','XXXXXX','variations des stocks ','603'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (67,1,'PCG99-ABREGE','XXXXXX','Services extérieurs','61'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (68,1,'PCG99-ABREGE','XXXXXX','Autres services extérieurs ','62'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (69,1,'PCG99-ABREGE','XXXXXX','Impôts, taxes et versements assimiles ','63'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (70,1,'PCG99-ABREGE','XXXXXX','Rémunérations du personnel ','641'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (71,1,'PCG99-ABREGE','XXXXXX','Rémunération du travail de l''exploitant ','644'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (72,1,'PCG99-ABREGE','XXXXXX','Charges de sécurité sociale et de prévoyance ','645'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (73,1,'PCG99-ABREGE','XXXXXX','Cotisations sociales personnelles de l''exploitant ','646'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (74,1,'PCG99-ABREGE','XXXXXX','Autres charges de gestion courante ','65'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (75,1,'PCG99-ABREGE','XXXXXX','Charges financières','66'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (76,1,'PCG99-ABREGE','XXXXXX','Charges exceptionnelles','67'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (77,1,'PCG99-ABREGE','XXXXXX','Dotations aux amortissements et aux provisions','681'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (78,1,'PCG99-ABREGE','XXXXXX','Dotations aux amortissements et aux provisions','686'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (79,1,'PCG99-ABREGE','XXXXXX','Dotations aux amortissements et aux provisions','687'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (80,1,'PCG99-ABREGE','XXXXXX','Participation des salariés aux résultats ','691'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (81,1,'PCG99-ABREGE','XXXXXX','Impôts sur les bénéfices ','695'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (82,1,'PCG99-ABREGE','XXXXXX','Imposition forfaitaire annuelle des sociétés ','697'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (83,1,'PCG99-ABREGE','XXXXXX','Produits','699'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (84,1,'PCG99-ABREGE','XXXXXX','Ventes de produits finis','701'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (85,1,'PCG99-ABREGE','XXXXXX','Prestations de services','706'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (86,1,'PCG99-ABREGE','XXXXXX','Ventes de marchandises','707'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (87,1,'PCG99-ABREGE','XXXXXX','Produits des activités annexes ','708'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (88,1,'PCG99-ABREGE','XXXXXX','Rabais, remises et ristournes accordés par l''entreprise ','709'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (89,1,'PCG99-ABREGE','XXXXXX','Variation des stocks ','713'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (90,1,'PCG99-ABREGE','XXXXXX','Production immobilisée','72'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (91,1,'PCG99-ABREGE','XXXXXX','Produits nets partiels sur opérations à long terme ','73'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (92,1,'PCG99-ABREGE','XXXXXX','Subventions d''exploitation','74'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (93,1,'PCG99-ABREGE','XXXXXX','Autres produits de gestion courante ','75'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (94,1,'PCG99-ABREGE','XXXXXX','Jetons de présence et rémunérations d''administrateurs, gérants,... ','753'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (95,1,'PCG99-ABREGE','XXXXXX','Ristournes perçues des coopératives ','754'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (96,1,'PCG99-ABREGE','XXXXXX','Quotes-parts de résultat sur opérations faites en commun ','755'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (97,1,'PCG99-ABREGE','XXXXXX','Produits financiers','76'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (98,1,'PCG99-ABREGE','XXXXXX','Produits exceptionnels','77'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (99,1,'PCG99-ABREGE','XXXXXX','Reprises sur amortissements et provisions ','781'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (100,1,'PCG99-ABREGE','XXXXXX','Reprises sur provisions pour risques ','786'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (101,1,'PCG99-ABREGE','XXXXXX','Reprises sur provisions ','787'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (102,1,'PCG99-ABREGE','XXXXXX','Transferts de charges','79'); diff --git a/mysql/migration/1.1.0-1.2.0-RC1.sql b/mysql/migration/1.1.0-1.2.0-RC1.sql index 5b387623378..7d86d6be001 100644 --- a/mysql/migration/1.1.0-1.2.0-RC1.sql +++ b/mysql/migration/1.1.0-1.2.0-RC1.sql @@ -467,20 +467,117 @@ update llx_chargesociales set periode=date_ech where periode is null or periode +drop table if exists llx_c_accountingsystem; + create table llx_c_accountingsystem ( rowid integer AUTO_INCREMENT PRIMARY KEY, - fk_pays integer NOT NULL, - type varchar(20) NOT NULL, + fk_pays integer NOT NULL, + pcg_version varchar(12) NOT NULL, + pcg_type varchar(20) NOT NULL, label varchar(128) NOT NULL, - account_format varchar(20) NOT NULL, - account_format2 varchar(20) NOT NULL + account_number varchar(20) NOT NULL )type=innodb; -insert into llx_c_accountingsystem (rowid, fk_pays, type, label, account_format, account_format2) VALUES (1,1,'CASH','Caisse','530','\d'); -insert into llx_c_accountingsystem (rowid, fk_pays, type, label, account_format, account_format2) VALUES (2,1,'CASH','Caisse siège social','531','\d'); - -insert into llx_c_accountingsystem (rowid, fk_pays, type, label, account_format, account_format2) VALUES (3,1,'BANK','Banque','512','\d'); -insert into llx_c_accountingsystem (rowid, fk_pays, type, label, account_format, account_format2) VALUES (4,1,'BANK','Banque - compte chèques postaux','514','\d'); -insert into llx_c_accountingsystem (rowid, fk_pays, type, label, account_format, account_format2) VALUES (5,1,'BANK','Autre organisme financier','518','\d'); - +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (1,1,'PCG99-ABREGE','XXXXXX','Capital','101'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (2,1,'PCG99-ABREGE','XXXXXX','Ecarts de réévaluation ','105'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (3,1,'PCG99-ABREGE','XXXXXX','Réserve légale','1061'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (4,1,'PCG99-ABREGE','XXXXXX','Réserves statutaires ou contractuelles ','1063'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (5,1,'PCG99-ABREGE','XXXXXX','Réserves réglementées ','1064'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (6,1,'PCG99-ABREGE','XXXXXX','Autres réserves','1068'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (7,1,'PCG99-ABREGE','XXXXXX','Compte de l''exploitant','108'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (8,1,'PCG99-ABREGE','XXXXXX','résultat de l''exercice ','12'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (9,1,'PCG99-ABREGE','XXXXXX','Amortissements dérogatoires ','145'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (10,1,'PCG99-ABREGE','XXXXXX','Provision spéciale de réévaluation ','146'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (11,1,'PCG99-ABREGE','XXXXXX','Plus-values réinvesties ','147'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (12,1,'PCG99-ABREGE','XXXXXX','Autres provisions réglementées ','148'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (13,1,'PCG99-ABREGE','XXXXXX','Provisions pour risques et charges ','15'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (14,1,'PCG99-ABREGE','XXXXXX','emprunts et dettes assimilees','16'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (15,1,'PCG99-ABREGE','XXXXXX','immobilisations incorporelles','20'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (16,1,'PCG99-ABREGE','XXXXXX','Frais d''établissement','201'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (17,1,'PCG99-ABREGE','XXXXXX','Droit au bail','206'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (18,1,'PCG99-ABREGE','XXXXXX','Fonds commercial','207'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (19,1,'PCG99-ABREGE','XXXXXX','Autres immobilisations incorporelles ','208'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (20,1,'PCG99-ABREGE','XXXXXX','immobilisations corporelles','21'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (21,1,'PCG99-ABREGE','XXXXXX','immobilisations en cours','23'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (22,1,'PCG99-ABREGE','XXXXXX','autres immobilisations financieres ','27'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (23,1,'PCG99-ABREGE','XXXXXX','Amortissements des immobilisations incorporelles ','280'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (24,1,'PCG99-ABREGE','XXXXXX','Amortissements des immobilisations corporelles ','281'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (25,1,'PCG99-ABREGE','XXXXXX','Provisions pour dépréciation des immobilisations incorporelles ','290'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (26,1,'PCG99-ABREGE','XXXXXX','Provisions pour dépréciation des immobilisations corporelles ','291'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (27,1,'PCG99-ABREGE','XXXXXX','Provisions pour dépréciation des autres immobilisations financières ','297'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (28,1,'PCG99-ABREGE','XXXXXX','matieres premières ','31'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (29,1,'PCG99-ABREGE','XXXXXX','autres approvisionnements','32'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (30,1,'PCG99-ABREGE','XXXXXX','en-cours de production de biens ','33'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (31,1,'PCG99-ABREGE','XXXXXX','en-cours de production de services ','34'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (32,1,'PCG99-ABREGE','XXXXXX','stocks de produits','35'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (33,1,'PCG99-ABREGE','XXXXXX','stocks de marchandises','37'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (34,1,'PCG99-ABREGE','XXXXXX','Provisions pour dépréciation des matières premières ','391'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (35,1,'PCG99-ABREGE','XXXXXX','Provisions pour dépréciation des autres approvisionnements ','392'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (36,1,'PCG99-ABREGE','XXXXXX','Provisions pour dépréciation des en-cours de production de biens ','393'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (37,1,'PCG99-ABREGE','XXXXXX','Provisions pour dépréciation des en-cours de production de services ','394'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (38,1,'PCG99-ABREGE','XXXXXX','Provisions pour dépréciation des stocks de produits ','395'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (39,1,'PCG99-ABREGE','XXXXXX','Provisions pour dépréciation des stocks de marchandises ','397'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (40,1,'PCG99-ABREGE','XXXXXX','Fournisseurs et Comptes rattachés ','400'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (41,1,'PCG99-ABREGE','XXXXXX','Fournisseurs débiteurs','409'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (42,1,'PCG99-ABREGE','XXXXXX','Clients et Comptes rattachés ','410'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (43,1,'PCG99-ABREGE','XXXXXX','Clients créditeurs','419'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (44,1,'PCG99-ABREGE','XXXXXX','Personnel','421'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (45,1,'PCG99-ABREGE','XXXXXX','Personnel','428'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (46,1,'PCG99-ABREGE','XXXXXX','Sécurité sociale et autres organismes sociaux ','43'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (47,1,'PCG99-ABREGE','XXXXXX','Etat','444'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (48,1,'PCG99-ABREGE','XXXXXX','Etat','445'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (49,1,'PCG99-ABREGE','XXXXXX','Autres impôts, taxes et versements assimilés ','447'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (50,1,'PCG99-ABREGE','XXXXXX','Groupe et associes','45'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (51,1,'PCG99-ABREGE','XXXXXX','Associés','455'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (52,1,'PCG99-ABREGE','XXXXXX','Débiteurs divers et créditeurs divers ','46'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (53,1,'PCG99-ABREGE','XXXXXX','comptes transitoires ou d''attente ','47'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (54,1,'PCG99-ABREGE','XXXXXX','Charges à répartir sur plusieurs exercices ','481'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (55,1,'PCG99-ABREGE','XXXXXX','Charges constatées d''avance ','486'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (56,1,'PCG99-ABREGE','XXXXXX','Produits constatés d''avance ','487'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (57,1,'PCG99-ABREGE','XXXXXX','Provisions pour dépréciation des comptes de clients ','491'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (58,1,'PCG99-ABREGE','XXXXXX','Provisions pour dépréciation des comptes de débiteurs divers ','496'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (59,1,'PCG99-ABREGE','XXXXXX','valeurs mobilières de placement ','50'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (60,1,'PCG99-ABREGE','BANK','banques, établissements financiers et assimilés ','51'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (61,1,'PCG99-ABREGE','CASH','Caisse','53'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (62,1,'PCG99-ABREGE','XXXXXX','régies d''avance et accréditifs','54'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (63,1,'PCG99-ABREGE','XXXXXX','virements internes','58'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (64,1,'PCG99-ABREGE','XXXXXX','Provisions pour dépréciation des valeurs mobilières de placement ','590'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (65,1,'PCG99-ABREGE','XXXXXX','Achats ','60'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (66,1,'PCG99-ABREGE','XXXXXX','variations des stocks ','603'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (67,1,'PCG99-ABREGE','XXXXXX','Services extérieurs','61'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (68,1,'PCG99-ABREGE','XXXXXX','Autres services extérieurs ','62'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (69,1,'PCG99-ABREGE','XXXXXX','Impôts, taxes et versements assimiles ','63'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (70,1,'PCG99-ABREGE','XXXXXX','Rémunérations du personnel ','641'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (71,1,'PCG99-ABREGE','XXXXXX','Rémunération du travail de l''exploitant ','644'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (72,1,'PCG99-ABREGE','XXXXXX','Charges de sécurité sociale et de prévoyance ','645'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (73,1,'PCG99-ABREGE','XXXXXX','Cotisations sociales personnelles de l''exploitant ','646'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (74,1,'PCG99-ABREGE','XXXXXX','Autres charges de gestion courante ','65'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (75,1,'PCG99-ABREGE','XXXXXX','Charges financières','66'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (76,1,'PCG99-ABREGE','XXXXXX','Charges exceptionnelles','67'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (77,1,'PCG99-ABREGE','XXXXXX','Dotations aux amortissements et aux provisions','681'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (78,1,'PCG99-ABREGE','XXXXXX','Dotations aux amortissements et aux provisions','686'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (79,1,'PCG99-ABREGE','XXXXXX','Dotations aux amortissements et aux provisions','687'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (80,1,'PCG99-ABREGE','XXXXXX','Participation des salariés aux résultats ','691'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (81,1,'PCG99-ABREGE','XXXXXX','Impôts sur les bénéfices ','695'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (82,1,'PCG99-ABREGE','XXXXXX','Imposition forfaitaire annuelle des sociétés ','697'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (83,1,'PCG99-ABREGE','XXXXXX','Produits','699'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (84,1,'PCG99-ABREGE','XXXXXX','Ventes de produits finis','701'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (85,1,'PCG99-ABREGE','XXXXXX','Prestations de services','706'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (86,1,'PCG99-ABREGE','XXXXXX','Ventes de marchandises','707'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (87,1,'PCG99-ABREGE','XXXXXX','Produits des activités annexes ','708'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (88,1,'PCG99-ABREGE','XXXXXX','Rabais, remises et ristournes accordés par l''entreprise ','709'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (89,1,'PCG99-ABREGE','XXXXXX','Variation des stocks ','713'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (90,1,'PCG99-ABREGE','XXXXXX','Production immobilisée','72'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (91,1,'PCG99-ABREGE','XXXXXX','Produits nets partiels sur opérations à long terme ','73'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (92,1,'PCG99-ABREGE','XXXXXX','Subventions d''exploitation','74'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (93,1,'PCG99-ABREGE','XXXXXX','Autres produits de gestion courante ','75'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (94,1,'PCG99-ABREGE','XXXXXX','Jetons de présence et rémunérations d''administrateurs, gérants,... ','753'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (95,1,'PCG99-ABREGE','XXXXXX','Ristournes perçues des coopératives ','754'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (96,1,'PCG99-ABREGE','XXXXXX','Quotes-parts de résultat sur opérations faites en commun ','755'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (97,1,'PCG99-ABREGE','XXXXXX','Produits financiers','76'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (98,1,'PCG99-ABREGE','XXXXXX','Produits exceptionnels','77'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (99,1,'PCG99-ABREGE','XXXXXX','Reprises sur amortissements et provisions ','781'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (100,1,'PCG99-ABREGE','XXXXXX','Reprises sur provisions pour risques ','786'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (101,1,'PCG99-ABREGE','XXXXXX','Reprises sur provisions ','787'); +insert into llx_c_accountingsystem (rowid, fk_pays, pcg_version, pcg_type, label, account_number) VALUES (102,1,'PCG99-ABREGE','XXXXXX','Transferts de charges','79'); diff --git a/mysql/tables/llx_c_accountingsystem.sql b/mysql/tables/llx_c_accountingsystem.sql index 55c48b3a77f..82e41b9fe7f 100644 --- a/mysql/tables/llx_c_accountingsystem.sql +++ b/mysql/tables/llx_c_accountingsystem.sql @@ -23,9 +23,9 @@ create table llx_c_accountingsystem ( rowid integer AUTO_INCREMENT PRIMARY KEY, - fk_pays integer NOT NULL, - type varchar(20) NOT NULL, + fk_pays integer NOT NULL, + pcg_version varchar(12) NOT NULL, + pcg_type varchar(20) NOT NULL, label varchar(128) NOT NULL, - account_format varchar(20) NOT NULL, - account_format2 varchar(20) NOT NULL + account_number varchar(20) NOT NULL )type=innodb;