New: Add supplier ref on supplier order

This commit is contained in:
Laurent Destailleur 2009-05-18 10:55:58 +00:00
parent 88e2583472
commit 6db46b53be
2 changed files with 8 additions and 3 deletions

View File

@ -19,6 +19,7 @@ alter table llx_facture_fourn add column tms timestamp after datef;
update llx_facture set tms = datec where tms <= 0;
update llx_facture_fourn set tms = datec where tms <= 0;
-- Clean no more required parameters
delete from llx_const where name = 'MAIN_MODULE_COMMERCIAL';
delete from llx_const where name like 'MAIN_MODULE_%_DIR_OUTPUT';
@ -137,3 +138,7 @@ UPDATE llx_const SET entity=0 WHERE name='SYSLOG_LEVEL';
-- Fix to solve forgoten names on keys
ALTER TABLE llx_dolibarr_modules drop primary KEY;
ALTER TABLE llx_dolibarr_modules ADD PRIMARY KEY pk_dolibarr_modules (numero, entity);
alter table llx_commande_fournisseur add column ref_supplier varchar(30) after entity;

View File

@ -24,10 +24,11 @@ create table llx_commande_fournisseur
rowid integer AUTO_INCREMENT PRIMARY KEY,
tms timestamp,
fk_soc integer NOT NULL,
fk_projet integer DEFAULT 0, -- projet auquel est rattache la commande
ref varchar(30) NOT NULL, -- order number
entity integer DEFAULT 1 NOT NULL, -- multi company id
entity integer DEFAULT 1 NOT NULL, -- multi company id
ref_supplier varchar(30),
fk_projet integer DEFAULT 0, -- projet auquel est rattache la commande
date_creation datetime, -- date de creation
date_valid datetime, -- date de validation
date_cloture datetime, -- date de cloture
@ -46,7 +47,6 @@ create table llx_commande_fournisseur
note text,
note_public text,
model_pdf varchar(50),
fk_methode_commande integer default 0
)type=innodb;