Skip to content
Snippets Groups Projects
Commit 85cd3917 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Add import_key field.

parent eaa4f3ef
No related branches found
No related tags found
No related merge requests found
...@@ -35,3 +35,15 @@ alter table llx_rights_def modify column type varchar(1); ...@@ -35,3 +35,15 @@ alter table llx_rights_def modify column type varchar(1);
ALTER TABLE `llx_commandedet` ADD column `date_start` DATETIME DEFAULT NULL, ADD `date_end` DATETIME DEFAULT NULL ; ALTER TABLE `llx_commandedet` ADD column `date_start` DATETIME DEFAULT NULL, ADD `date_end` DATETIME DEFAULT NULL ;
alter table llx_categorie add column fk_soc integer DEFAULT 0 after description; alter table llx_categorie add column fk_soc integer DEFAULT 0 after description;
alter table llx_product drop column nbvente;
alter table llx_product add column import_key varchar(14);
alter table llx_socpeople add column import_key varchar(14);
alter table llx_facture add column import_key varchar(14);
alter table llx_facturedet add column import_key varchar(14);
alter table llx_commande add column import_key varchar(14);
alter table llx_commandedet add column import_key varchar(14);
alter table llx_facture_fourn add column import_key varchar(14);
alter table llx_facture_fourn_det add column import_key varchar(14);
...@@ -52,6 +52,5 @@ create table llx_commande ...@@ -52,6 +52,5 @@ create table llx_commande
fk_mode_reglement integer, -- mode de rglement fk_mode_reglement integer, -- mode de rglement
date_livraison date default NULL, date_livraison date default NULL,
fk_adresse_livraison integer, -- adresse de livraison fk_adresse_livraison integer, -- adresse de livraison
import_key varchar(14)
UNIQUE INDEX (ref)
)type=innodb; )type=innodb;
...@@ -41,11 +41,12 @@ create table llx_commandedet ...@@ -41,11 +41,12 @@ create table llx_commandedet
marge_tx double(6,3) DEFAULT 0, -- taux de marge (marge sur prix d'achat) marge_tx double(6,3) DEFAULT 0, -- taux de marge (marge sur prix d'achat)
marque_tx double(6,3) DEFAULT 0, -- taux de marque (marge sur prix de vente) marque_tx double(6,3) DEFAULT 0, -- taux de marque (marge sur prix de vente)
special_code tinyint(4) UNSIGNED DEFAULT 0, -- code pour les lignes speciales special_code tinyint(4) UNSIGNED DEFAULT 0, -- code pour les lignes speciales
rang integer DEFAULT 0 rang integer DEFAULT 0,
import_key varchar(14)
)type=innodb; )type=innodb;
-- --
-- Liste des codes pour special_code -- List of codes for special_code
-- --
-- 1 : frais de port -- 1 : frais de port
-- 2 : ecotaxe -- 2 : ecotaxe
......
...@@ -58,5 +58,7 @@ create table llx_facture ...@@ -58,5 +58,7 @@ create table llx_facture
note text, note text,
note_public text, note_public text,
model_pdf varchar(50) model_pdf varchar(50),
import_key varchar(14)
)type=innodb; )type=innodb;
...@@ -48,5 +48,6 @@ create table llx_facture_fourn ...@@ -48,5 +48,6 @@ create table llx_facture_fourn
date_lim_reglement date, -- date limite de reglement date_lim_reglement date, -- date limite de reglement
note text, note text,
note_public text note_public text,
import_key varchar(14)
)type=innodb; )type=innodb;
...@@ -31,5 +31,6 @@ create table llx_facture_fourn_det ...@@ -31,5 +31,6 @@ create table llx_facture_fourn_det
total_ht double(24,8) DEFAULT 0, total_ht double(24,8) DEFAULT 0,
tva double(24,8) DEFAULT 0, tva double(24,8) DEFAULT 0,
total_ttc double(24,8) DEFAULT 0, total_ttc double(24,8) DEFAULT 0,
product_type integer DEFAULT 0 product_type integer DEFAULT 0,
import_key varchar(14)
)type=innodb; )type=innodb;
...@@ -43,11 +43,12 @@ create table llx_facturedet ...@@ -43,11 +43,12 @@ create table llx_facturedet
fk_code_ventilation integer DEFAULT 0 NOT NULL, fk_code_ventilation integer DEFAULT 0 NOT NULL,
fk_export_compta integer DEFAULT 0 NOT NULL, fk_export_compta integer DEFAULT 0 NOT NULL,
special_code tinyint(4) UNSIGNED DEFAULT 0, -- code pour les lignes speciales special_code tinyint(4) UNSIGNED DEFAULT 0, -- code pour les lignes speciales
rang integer DEFAULT 0 -- ordre d'affichage rang integer DEFAULT 0, -- ordre d'affichage
import_key varchar(14)
)type=innodb; )type=innodb;
-- --
-- Liste des codes pour special_code -- List of codes for special_code
-- --
-- 1 : frais de port -- 1 : frais de port
-- 2 : ecotaxe -- 2 : ecotaxe
......
...@@ -35,7 +35,6 @@ create table llx_product ...@@ -35,7 +35,6 @@ 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,
nbvente integer DEFAULT 0,
fk_product_type integer DEFAULT 0, fk_product_type integer DEFAULT 0,
duration varchar(6), duration varchar(6),
stock_propale integer DEFAULT 0, stock_propale integer DEFAULT 0,
...@@ -49,6 +48,7 @@ create table llx_product ...@@ -49,6 +48,7 @@ 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,
canvas varchar(15) DEFAULT '' canvas varchar(15) DEFAULT '',
import_key varchar(14)
)type=innodb; )type=innodb;
...@@ -43,5 +43,6 @@ create table llx_socpeople ...@@ -43,5 +43,6 @@ create table llx_socpeople
priv smallint NOT NULL DEFAULT 0, priv smallint NOT NULL DEFAULT 0,
fk_user_creat integer DEFAULT 0, -- user qui a cr l'enregistrement fk_user_creat integer DEFAULT 0, -- user qui a cr l'enregistrement
fk_user_modif integer, fk_user_modif integer,
note text note text,
import_key varchar(14)
)type=innodb; )type=innodb;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment