diff --git a/mysql/tables/llx_entrepot.sql b/mysql/tables/llx_entrepot.sql new file mode 100644 index 00000000000..205968853e3 --- /dev/null +++ b/mysql/tables/llx_entrepot.sql @@ -0,0 +1,33 @@ +-- ============================================================================ +-- Copyright (C) 2003 Rodolphe Quiedeville +-- +-- 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_entrepot +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + datec datetime, + tms timestamp, + label varchar(255), + description text, + fk_user_author integer + +) type=ISAM; + diff --git a/mysql/tables/llx_facture_rec.sql b/mysql/tables/llx_facture_rec.sql new file mode 100644 index 00000000000..874c6f75eae --- /dev/null +++ b/mysql/tables/llx_facture_rec.sql @@ -0,0 +1,43 @@ +-- =========================================================================== +-- Copyright (C) 2003 Rodolphe Quiedeville +-- +-- 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_facture_rec +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + titre varchar(50) NOT NULL, + fk_soc integer NOT NULL, + datec datetime, -- date de creation + + amount real default 0 NOT NULL, + remise real default 0, + remise_percent real default 0, + tva real default 0, + total real default 0, + total_ttc real default 0, + + fk_user_author integer, -- createur + fk_projet integer, -- projet auquel est associé la facture + fk_cond_reglement integer, -- condition de reglement + + note text, + + INDEX fksoc (fk_soc) +); diff --git a/mysql/tables/llx_facturedet_rec.sql b/mysql/tables/llx_facturedet_rec.sql new file mode 100644 index 00000000000..f87d79e9aa9 --- /dev/null +++ b/mysql/tables/llx_facturedet_rec.sql @@ -0,0 +1,34 @@ +-- =================================================================== +-- Copyright (C) 2003 Rodolphe Quiedeville +-- +-- 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_facturedet_rec +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + fk_facture integer NOT NULL, + fk_product integer, + description text, + tva_taux real default 19.6, -- taux tva + qty real, -- quantité + remise_percent real default 0, -- pourcentage de remise + remise real default 0, -- montant de la remise + subprice real, -- prix avant remise + price real -- prix final +); diff --git a/mysql/tables/llx_product_stock.sql b/mysql/tables/llx_product_stock.sql new file mode 100644 index 00000000000..50dadd5c88f --- /dev/null +++ b/mysql/tables/llx_product_stock.sql @@ -0,0 +1,34 @@ +-- ============================================================================ +-- Copyright (C) 2003 Rodolphe Quiedeville +-- +-- 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_product_stock +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + tms timestamp, + fk_product integer NOT NULL, + fk_stock integer NOT NULL, + value integer, + + key(fk_product), + key(fk_stock) +) + diff --git a/mysql/tables/llx_stock.sql b/mysql/tables/llx_stock.sql new file mode 100644 index 00000000000..747cc81cf59 --- /dev/null +++ b/mysql/tables/llx_stock.sql @@ -0,0 +1,33 @@ +-- ============================================================================ +-- Copyright (C) 2003 Rodolphe Quiedeville +-- +-- 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_entrepot +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + datec datetime, + tms timestamp, + label varchar(255), + description text, + fk_user_author integer + +) type=INNODB; + diff --git a/mysql/tables/llx_stock_mouvement.sql b/mysql/tables/llx_stock_mouvement.sql new file mode 100644 index 00000000000..15f81165721 --- /dev/null +++ b/mysql/tables/llx_stock_mouvement.sql @@ -0,0 +1,37 @@ +-- ============================================================================ +-- Copyright (C) 2003 Rodolphe Quiedeville +-- +-- 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_stock_mouvement +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + tms timestamp, + datem datetime, + fk_product integer NOT NULL, + fk_stock integer NOT NULL, + value integer, + type_mouvement smallint, + fk_user_author integer, + + key(fk_product), + key(fk_stock) +) +