2
0
forked from Wavyzz/dolibarr

Add: ajout de la table fk_contrat afin de pouvoir lier une fiche d'intervention avec un contrat de maintenance par exemple

This commit is contained in:
Regis Houssin
2007-06-22 15:13:02 +00:00
parent abd733e5dc
commit ec8be45fa3
4 changed files with 5 additions and 3 deletions

View File

@@ -348,7 +348,7 @@ elseif ($_GET["id"] > 0)
print "<tr><td>".$langs->trans("Company")."</td><td>".$fichinter->client->getNomUrl(1)."</td></tr>"; print "<tr><td>".$langs->trans("Company")."</td><td>".$fichinter->client->getNomUrl(1)."</td></tr>";
// Date // Date
print '<tr><td width="20%">'.$langs->trans("Date").'</td><td>'.dolibarr_print_date($fichinter->date,"day").'</td></tr>'; print '<tr><td width="20%">'.$langs->trans("Date").'</td><td>'.dolibarr_print_date($fichinter->date,"daytext").'</td></tr>';
// Dur<75>e // Dur<75>e
print '<tr><td>'.$langs->trans("Duration").'</td><td>'.$fichinter->duree.'</td></tr>'; print '<tr><td>'.$langs->trans("Duration").'</td><td>'.$fichinter->duree.'</td></tr>';

View File

@@ -686,3 +686,4 @@ ALTER TABLE llx_fichinter CHANGE note description text DEFAULT NULL;
ALTER TABLE llx_fichinter ADD COLUMN note_private text DEFAULT NULL after description; ALTER TABLE llx_fichinter ADD COLUMN note_private text DEFAULT NULL after description;
ALTER TABLE llx_fichinter ADD COLUMN note_public text DEFAULT NULL after note_private; ALTER TABLE llx_fichinter ADD COLUMN note_public text DEFAULT NULL after note_private;
ALTER TABLE llx_fichinter ADD COLUMN tms timestamp after ref; ALTER TABLE llx_fichinter ADD COLUMN tms timestamp after ref;
ALTER TABLE llx_fichinter ADD COLUMN fk_contrat integer DEFAULT 0 after fk_projet;

View File

@@ -22,4 +22,4 @@
ALTER TABLE llx_fichinter ADD INDEX idx_fichinter_fk_soc (fk_soc); ALTER TABLE llx_fichinter ADD INDEX idx_fichinter_fk_soc (fk_soc);
ALTER TABLE llx_fichinter ADD CONSTRAINT fk_fichinter_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid); ALTER TABLE llx_fichinter ADD CONSTRAINT fk_fichinter_fk_soc FOREIGN KEY (fk_soc) REFERENCES llx_societe (rowid);

View File

@@ -25,6 +25,7 @@ create table llx_fichinter
rowid integer AUTO_INCREMENT PRIMARY KEY, rowid integer AUTO_INCREMENT PRIMARY KEY,
fk_soc integer NOT NULL, fk_soc integer NOT NULL,
fk_projet integer DEFAULT 0, -- projet auquel est rattache la fiche fk_projet integer DEFAULT 0, -- projet auquel est rattache la fiche
fk_contrat integer DEFAULT 0, -- contrat auquel est rattache la fiche
ref varchar(30) NOT NULL, -- number ref varchar(30) NOT NULL, -- number
tms timestamp, tms timestamp,
datec datetime, -- date de creation datec datetime, -- date de creation