2006-12-11 18:39:39 +01:00
|
|
|
-- ===================================================================
|
|
|
|
|
-- Copyright (C) 2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
|
|
|
--
|
|
|
|
|
-- 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
|
2013-01-16 15:36:08 +01:00
|
|
|
-- the Free Software Foundation; either version 3 of the License, or
|
2006-12-11 18:39:39 +01:00
|
|
|
-- (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
|
2019-09-23 21:55:30 +02:00
|
|
|
-- along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2006-12-11 18:39:39 +01:00
|
|
|
--
|
2015-02-11 22:54:06 +01:00
|
|
|
-- This table is just an history table to track all receiving done for a
|
|
|
|
|
-- particular supplier order. A movement with same information is also done
|
|
|
|
|
-- into stock_movement so this table may be useless.
|
2006-12-11 18:39:39 +01:00
|
|
|
-- ===================================================================
|
|
|
|
|
|
|
|
|
|
create table llx_commande_fournisseur_dispatch
|
|
|
|
|
(
|
|
|
|
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
|
|
|
|
fk_commande integer,
|
|
|
|
|
fk_product integer,
|
2015-02-12 12:56:21 +01:00
|
|
|
fk_commandefourndet integer,
|
2018-10-03 18:05:22 +02:00
|
|
|
fk_projet integer DEFAULT NULL,
|
2018-10-04 09:50:39 +02:00
|
|
|
fk_reception integer DEFAULT NULL,
|
2011-02-25 20:13:51 +01:00
|
|
|
qty float, -- qty
|
2006-12-11 18:39:39 +01:00
|
|
|
fk_entrepot integer,
|
|
|
|
|
fk_user integer,
|
2015-02-11 15:03:33 +01:00
|
|
|
comment varchar(255), -- comment on movement
|
2020-03-25 19:34:52 +01:00
|
|
|
batch varchar(128) DEFAULT NULL,
|
2015-02-11 22:54:06 +01:00
|
|
|
eatby date DEFAULT NULL,
|
|
|
|
|
sellby date DEFAULT NULL,
|
2015-02-11 14:46:16 +01:00
|
|
|
status integer,
|
|
|
|
|
datec datetime,
|
2021-09-22 14:56:44 +02:00
|
|
|
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
|
|
|
|
cost_price double(24,8) DEFAULT 0
|
2011-02-24 10:57:02 +01:00
|
|
|
)ENGINE=innodb;
|