From edaeaf38032a72efa004c8e20f37d6479d30b44c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 8 Sep 2013 00:23:32 +0200 Subject: [PATCH] Fix: field is not mandatory --- htdocs/install/mysql/migration/3.4.0-3.5.0.sql | 5 +++++ htdocs/install/mysql/tables/llx_facture_fourn.sql | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/htdocs/install/mysql/migration/3.4.0-3.5.0.sql b/htdocs/install/mysql/migration/3.4.0-3.5.0.sql index b4b6c5efcbf..2c3542a777d 100755 --- a/htdocs/install/mysql/migration/3.4.0-3.5.0.sql +++ b/htdocs/install/mysql/migration/3.4.0-3.5.0.sql @@ -288,4 +288,9 @@ ALTER TABLE llx_bordereau_cheque ADD tms timestamp; -- Task 1011 ALTER TABLE llx_societe ADD mode_reglement_supplier integer NULL AFTER cond_reglement; ALTER TABLE llx_societe ADD cond_reglement_supplier integer NULL AFTER mode_reglement_supplier; + ALTER TABLE llx_facture_fourn ADD fk_mode_reglement integer NULL AFTER fk_cond_reglement; + +ALTER TABLE llx_facture_fourn MODIFY COLUMN fk_mode_reglement integer NULL; +ALTER TABLE llx_facture_fourn MODIFY COLUMN fk_cond_reglement integer NULL; + diff --git a/htdocs/install/mysql/tables/llx_facture_fourn.sql b/htdocs/install/mysql/tables/llx_facture_fourn.sql index 8722cc7ef8e..c980d43e40f 100644 --- a/htdocs/install/mysql/tables/llx_facture_fourn.sql +++ b/htdocs/install/mysql/tables/llx_facture_fourn.sql @@ -58,8 +58,8 @@ create table llx_facture_fourn fk_facture_source integer, -- facture origine si facture avoir fk_projet integer, -- projet auquel est associee la facture - fk_cond_reglement integer DEFAULT 1 NOT NULL, -- condition de reglement (30 jours, fin de mois ...) - fk_mode_reglement integer DEFAULT 0 NOT NULL, -- mode de reglement (CHQ, VIR, ...) + fk_cond_reglement integer, -- condition de reglement (30 jours, fin de mois ...) + fk_mode_reglement integer, -- mode de reglement (CHQ, VIR, ...) date_lim_reglement date, -- date limite de reglement note_private text,