Ajout du champ account_number pour stocker le numérode de compte comptable à utiliser pour chaque compte bancaire. Ce numéro sera à choisir au moment de la création du compta bancaire parmi la liste des comptes comptables définies dans le plan comptable llx_c_accountsystem.

This commit is contained in:
Laurent Destailleur 2004-07-24 23:05:19 +00:00
parent bf52744c35
commit b86f0081d1
3 changed files with 9 additions and 4 deletions

View File

@ -50,6 +50,8 @@ alter table llx_bank_account modify bank varchar(60);
alter table llx_bank_account modify domiciliation varchar(255); alter table llx_bank_account modify domiciliation varchar(255);
alter table llx_bank_account add proprio varchar(60) after domiciliation ; alter table llx_bank_account add proprio varchar(60) after domiciliation ;
alter table llx_bank_account add adresse_proprio varchar(255) after proprio ; alter table llx_bank_account add adresse_proprio varchar(255) after proprio ;
alter table llx_bank_account add account_number varchar(8) after clos ;
update llx_bank_account set account_number = '51' where account_number is null;
alter table llx_paiement add fk_bank integer NOT NULL after note ; alter table llx_paiement add fk_bank integer NOT NULL after note ;
alter table llx_paiementfourn add fk_bank integer NOT NULL after note ; alter table llx_paiementfourn add fk_bank integer NOT NULL after note ;

View File

@ -42,5 +42,6 @@ create table llx_bank_account
proprio varchar(60), proprio varchar(60),
adresse_proprio varchar(255), adresse_proprio varchar(255),
courant smallint default 0 not null, courant smallint default 0 not null,
clos smallint default 0 not null clos smallint default 0 not null,
account_number varchar(8)
)type=innodb; )type=innodb;

View File

@ -1,7 +1,8 @@
-- =================================================================== -- ===================================================================
-- Copyright (C) 2000-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- Copyright (C) 2000-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- Copyright (C) 2002-2003 Éric Seigne <erics@rycks.com> -- Copyright (C) 2002-2003 Éric Seigne <erics@rycks.com>
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> -- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
-- --
-- This program is free software; you can redistribute it and/or modify -- 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 -- it under the terms of the GNU General Public License as published by
@ -39,5 +40,6 @@ create table llx_bank_account
proprio varchar(60), proprio varchar(60),
adresse_proprio varchar(255), adresse_proprio varchar(255),
courant smallint default 0 not null, courant smallint default 0 not null,
clos smallint default 0 not null clos smallint default 0 not null,
account_number varchar(8)
); );