diff --git a/mysql/data/data.sql b/mysql/data/data.sql index a3cf458521b..103e08c4fbf 100644 --- a/mysql/data/data.sql +++ b/mysql/data/data.sql @@ -484,3 +484,16 @@ INSERT INTO llx_c_civilite (rowid, fk_pays, civilite, active) VALUES (4, 2, 'Men INSERT INTO llx_c_civilite (rowid, fk_pays, civilite, active) VALUES (5, 2, 'Mademoiselle', 1); INSERT INTO llx_c_civilite (rowid, fk_pays, civilite, active) VALUES (6, 2, 'Juffrouw', 1); INSERT INTO llx_c_civilite (rowid, fk_pays, civilite, active) VALUES (7, 2, 'Maître', 1); + + +-- +-- Descriptif des plans comptables +-- +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'); + + 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 bb6edb1daa6..5b387623378 100644 --- a/mysql/migration/1.1.0-1.2.0-RC1.sql +++ b/mysql/migration/1.1.0-1.2.0-RC1.sql @@ -464,3 +464,23 @@ create table llx_cash update llx_bank set datev=dateo where datev is null; update llx_chargesociales set periode=date_ech where periode is null or periode = '0000-00-00'; + + + +create table llx_c_accountingsystem +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + fk_pays integer NOT NULL, + type varchar(20) NOT NULL, + label varchar(128) NOT NULL, + account_format varchar(20) NOT NULL, + account_format2 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'); + diff --git a/mysql/tables/llx_c_accountingsystem.sql b/mysql/tables/llx_c_accountingsystem.sql new file mode 100644 index 00000000000..55c48b3a77f --- /dev/null +++ b/mysql/tables/llx_c_accountingsystem.sql @@ -0,0 +1,31 @@ +-- ============================================================================ +-- Copyright (C) 2004 Laurent Destailleur +-- +-- This program 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. +-- +-- This program 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 this program; if not, write to the Free Software +-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +-- +-- $Id$ +-- $Source$ +-- +-- ============================================================================ + +create table llx_c_accountingsystem +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + fk_pays integer NOT NULL, + type varchar(20) NOT NULL, + label varchar(128) NOT NULL, + account_format varchar(20) NOT NULL, + account_format2 varchar(20) NOT NULL +)type=innodb;