This commit is contained in:
Regis Houssin 2006-05-29 15:33:12 +00:00
parent 925a29c9a8
commit 7c85715961
3 changed files with 2 additions and 4 deletions

View File

@ -78,7 +78,7 @@ class Livraison
if ($this->commande_id) $sql.= ", fk_commande";
if ($this->expedition_id) $sql.= ", fk_expedition";
$sql.= ")";
$sql.= " VALUES (now(), $user->id, $this->commande_id";
$sql.= " VALUES (now(), $user->id";
if ($this->commande_id) $sql.= ", $this->commande_id";
if ($this->expedition_id) $sql.= ", $this->expedition_id";
$sql.= ")";

View File

@ -240,8 +240,6 @@ create table llx_livraisondet
key(fk_commande_ligne)
)type=innodb;
ALTER TABLE llx_livraison ADD INDEX idx_livraison_fk_soc (fk_soc);
ALTER TABLE llx_livraison ADD CONSTRAINT fk_livraison_societe FOREIGN KEY (fk_soc) REFERENCES llx_societe (idp);
insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (90, 'commande', 'internal', 'SALESREPSIGN', 'Commercial signataire de la commande', 1);
insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (91, 'commande', 'internal', 'SALESREPFOLL', 'Commercial suivi de la commande', 1);

View File

@ -40,6 +40,6 @@ create table llx_livraison
date_livraison date default NULL,
fk_adresse_livraison integer, -- adresse de livraison
UNIQUE INDEX (ref)
UNIQUE INDEX (ref),
key(fk_commande)
)type=innodb;