diff --git a/htdocs/install/mysql/migration/20.0.0-21.0.0.sql b/htdocs/install/mysql/migration/20.0.0-21.0.0.sql index e158fed274f..ad47c2bac29 100644 --- a/htdocs/install/mysql/migration/20.0.0-21.0.0.sql +++ b/htdocs/install/mysql/migration/20.0.0-21.0.0.sql @@ -282,3 +282,5 @@ CREATE TABLE llx_product_customer_price_extrafields ( ) ENGINE=innodb; ALTER TABLE llx_product_customer_price_extrafields ADD UNIQUE INDEX uk_product_customer_price_extrafields (fk_object); +ALTER TABLE llx_facture ADD COLUMN payment_reference varchar(25) AFTER date_lim_reglement; +ALTER TABLE llx_societe ADD COLUMN tp_payment_reference varchar(25) AFTER code_fournisseur; diff --git a/htdocs/install/mysql/tables/llx_facture.sql b/htdocs/install/mysql/tables/llx_facture.sql index b5a1f95db90..9e2f2ad1890 100644 --- a/htdocs/install/mysql/tables/llx_facture.sql +++ b/htdocs/install/mysql/tables/llx_facture.sql @@ -79,7 +79,7 @@ create table llx_facture fk_cond_reglement integer DEFAULT 1 NOT NULL, -- payment term (30 days, end of month...) fk_mode_reglement integer, -- payment mode (Virement, Prelevement) date_lim_reglement date, -- due date - + payment_reference varchar(25), -- SEPA and any other national or custom payment id note_private text, note_public text, model_pdf varchar(255), diff --git a/htdocs/install/mysql/tables/llx_societe.sql b/htdocs/install/mysql/tables/llx_societe.sql index a4ce431ada2..4f6fc0800a9 100644 --- a/htdocs/install/mysql/tables/llx_societe.sql +++ b/htdocs/install/mysql/tables/llx_societe.sql @@ -38,7 +38,7 @@ create table llx_societe code_client varchar(24), -- code client code_fournisseur varchar(24), -- code fournisseur - + tp_payment_reference varchar(25), -- SEPA and any other national or custom payment id accountancy_code_customer_general varchar(32) DEFAULT NULL, -- customer accountancy general account code_compta varchar(32), -- customer accountancy auxiliary account accountancy_code_supplier_general varchar(32) DEFAULT NULL, -- supplier accountancy general account