From 0061b3c7d8c1f7c6a0e094f084fe0d9132ffe099 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 13 Mar 2010 22:54:55 +0000 Subject: [PATCH] New: Add field accountancy_code for sell/buy product --- htdocs/install/mysql/migration/2.8.0-2.9.0.sql | 3 +++ htdocs/install/mysql/tables/llx_product.sql | 2 ++ 2 files changed, 5 insertions(+) diff --git a/htdocs/install/mysql/migration/2.8.0-2.9.0.sql b/htdocs/install/mysql/migration/2.8.0-2.9.0.sql index 2e64f735051..973b087b12b 100755 --- a/htdocs/install/mysql/migration/2.8.0-2.9.0.sql +++ b/htdocs/install/mysql/migration/2.8.0-2.9.0.sql @@ -80,3 +80,6 @@ alter table llx_product add column length float DEFAULT NUL alter table llx_product add column length_units tinyint DEFAULT NULL after length; alter table llx_product add column surface float DEFAULT NULL after length_units; alter table llx_product add column surface_units tinyint DEFAULT NULL after surface; + +alter table llx_product add column accountancy_code_sell varchar(15) after fk_barcode_type; +alter table llx_product add column accountancy_code_buy varchar(15) after accountancy_code_sell; diff --git a/htdocs/install/mysql/tables/llx_product.sql b/htdocs/install/mysql/tables/llx_product.sql index 612548df827..999f97b45e4 100644 --- a/htdocs/install/mysql/tables/llx_product.sql +++ b/htdocs/install/mysql/tables/llx_product.sql @@ -46,6 +46,8 @@ create table llx_product stock_loc varchar(10), -- emplacement dans le stock barcode varchar(255) DEFAULT NULL, fk_barcode_type integer DEFAULT 0, + accountancy_code_sell varchar(15), -- code compta vente + accountancy_code_buy varchar(15), -- code compta achat partnumber varchar(32), weight float DEFAULT NULL, weight_units tinyint DEFAULT NULL,