|
@@ -4,6 +4,7 @@
|
|
|
-- Copyright (C) 2005-2010 Regis Houssin <regis.houssin@capnetworks.com>
|
|
|
-- Copyright (C) 2010 juanjo Menent <jmenent@2byte.es>
|
|
|
-- Copyright (C) 2013 Cédric Salvador <csalvador@gpcsolutions.fr>
|
|
|
+-- Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
|
|
|
--
|
|
|
-- 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
|
|
@@ -37,7 +38,7 @@ create table llx_product
|
|
|
description text,
|
|
|
note text,
|
|
|
customcode varchar(32), -- Optionnal custom code
|
|
|
- fk_country integer, -- Optionnal id of original country
|
|
|
+ fk_country integer DEFAULT NULL, -- Optionnal id of original country
|
|
|
price double(24,8) DEFAULT 0,
|
|
|
price_ttc double(24,8) DEFAULT 0,
|
|
|
price_min double(24,8) DEFAULT 0,
|
|
@@ -47,7 +48,7 @@ create table llx_product
|
|
|
recuperableonly integer NOT NULL DEFAULT '0', -- French NPR VAT
|
|
|
localtax1_tx double(6,3) DEFAULT 0, -- Spanish local VAT 1
|
|
|
localtax2_tx double(6,3) DEFAULT 0, -- Spanish local VAT 2
|
|
|
- fk_user_author integer,
|
|
|
+ fk_user_author integer DEFAULT NULL,
|
|
|
tosell tinyint DEFAULT 1, -- Product you sell
|
|
|
tobuy tinyint DEFAULT 1, -- Product you buy
|
|
|
tobatch tinyint DEFAULT 0 NOT NULL, -- Is it a product that need a batch or eat-by management
|
|
@@ -56,7 +57,7 @@ create table llx_product
|
|
|
seuil_stock_alerte integer DEFAULT 0,
|
|
|
url varchar(255),
|
|
|
barcode varchar(255) DEFAULT NULL,
|
|
|
- fk_barcode_type integer DEFAULT 0,
|
|
|
+ fk_barcode_type integer DEFAULT NULL,
|
|
|
accountancy_code_sell varchar(32), -- Selling accountancy code
|
|
|
accountancy_code_buy varchar(32), -- Buying accountancy code
|
|
|
partnumber varchar(32), -- Not used. Used by external modules.
|