Ajout de la table llx_cash pour grer les critures de la caisse (non gres jusqu'ici) comme on gre un compte bancaire (La caisse est un compte financier au mme titre que le compte bancaire mais toujours spar de celui-ci dans les bilans, il vaut donc mieux la grer part de llx_bank).

This commit is contained in:
Laurent Destailleur 2004-03-15 14:53:56 +00:00
parent 8432408b04
commit fc7f410705
2 changed files with 46 additions and 0 deletions

View File

@ -473,3 +473,15 @@ create table llx_user_param
UNIQUE (fk_user,page,param)
)type=innodb;
create table llx_cash
(
rowid integer AUTO_INCREMENT PRIMARY KEY,
datec datetime,
dateo date NOT NULL,
amount real NOT NULL default 0,
label varchar(255),
fk_account integer,
fk_user_author integer,
fk_type varchar(4),
note text
)type=innodb;

34
mysql/tables/llx_cash.sql Normal file
View File

@ -0,0 +1,34 @@
-- ===================================================================
-- Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
--
-- $Id$
-- $Source$
--
-- 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.
--
-- ===================================================================
create table llx_cash
(
rowid integer AUTO_INCREMENT PRIMARY KEY,
datec datetime,
dateo date NOT NULL, -- date operation
amount real NOT NULL default 0,
label varchar(255),
fk_account integer, -- Pour gerer plusieurs caisse
fk_user_author integer,
fk_type varchar(4), -- Liquide, retrait, depot
note text
)type=innodb;