Fix: clean code
This commit is contained in:
parent
1322f85643
commit
2cea2b959a
@ -1,7 +1,7 @@
|
|||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2002-2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2002-2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2008-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2008-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
-- Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr>
|
-- Copyright (C) 2005-2010 Regis Houssin <regis@dolibarr.fr>
|
||||||
--
|
--
|
||||||
-- 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
|
||||||
@ -26,7 +26,7 @@ create table llx_product
|
|||||||
datec datetime,
|
datec datetime,
|
||||||
tms timestamp,
|
tms timestamp,
|
||||||
ref varchar(32) NOT NULL,
|
ref varchar(32) NOT NULL,
|
||||||
entity integer DEFAULT 1 NOT NULL, -- multi company id
|
entity integer DEFAULT 1 NOT NULL, -- multi company id
|
||||||
label varchar(255) NOT NULL,
|
label varchar(255) NOT NULL,
|
||||||
description text,
|
description text,
|
||||||
note text,
|
note text,
|
||||||
@ -38,10 +38,10 @@ create table llx_product
|
|||||||
tva_tx double(6,3),
|
tva_tx double(6,3),
|
||||||
fk_user_author integer,
|
fk_user_author integer,
|
||||||
envente tinyint DEFAULT 1,
|
envente tinyint DEFAULT 1,
|
||||||
fk_product_type integer DEFAULT 0, -- Type 0 for regular product, 1 for service
|
fk_product_type integer DEFAULT 0, -- Type 0 for regular product, 1 for service
|
||||||
duration varchar(6),
|
duration varchar(6),
|
||||||
seuil_stock_alerte integer DEFAULT 0,
|
seuil_stock_alerte integer DEFAULT 0,
|
||||||
stock_loc varchar(10), -- emplacement dans le stock
|
stock_loc varchar(10), -- emplacement dans le stock
|
||||||
barcode varchar(255) DEFAULT NULL,
|
barcode varchar(255) DEFAULT NULL,
|
||||||
fk_barcode_type integer DEFAULT 0,
|
fk_barcode_type integer DEFAULT 0,
|
||||||
partnumber varchar(32),
|
partnumber varchar(32),
|
||||||
@ -49,17 +49,9 @@ create table llx_product
|
|||||||
weight_units tinyint DEFAULT NULL,
|
weight_units tinyint DEFAULT NULL,
|
||||||
volume float DEFAULT NULL,
|
volume float DEFAULT NULL,
|
||||||
volume_units tinyint DEFAULT NULL,
|
volume_units tinyint DEFAULT NULL,
|
||||||
stock integer, -- physical stock
|
stock integer, -- physical stock
|
||||||
pmp double(24,8) default 0 NOT NULL,
|
pmp double(24,8) DEFAULT 0 NOT NULL,
|
||||||
canvas varchar(15) DEFAULT '',
|
canvas varchar(15) DEFAULT '',
|
||||||
finished tinyint DEFAULT NULL,
|
finished tinyint DEFAULT NULL,
|
||||||
import_key varchar(14) -- import key
|
import_key varchar(14) -- import key
|
||||||
)type=innodb;
|
)type=innodb;
|
||||||
|
|
||||||
--
|
|
||||||
-- List of codes for the field entity
|
|
||||||
--
|
|
||||||
-- 1 : first company product
|
|
||||||
-- 2 : second company product
|
|
||||||
-- 3 : etc...
|
|
||||||
--
|
|
||||||
Loading…
Reference in New Issue
Block a user