From 9403eb5aabe393dbabb84098d9caec2f18e09eed Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 11 Jan 2026 19:12:19 +0100 Subject: [PATCH] Copy some field of customer invoices into supplier invoices --- htdocs/install/mysql/migration/23.0.0-24.0.0.sql | 5 +++++ htdocs/install/mysql/tables/llx_facture_fourn.sql | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/htdocs/install/mysql/migration/23.0.0-24.0.0.sql b/htdocs/install/mysql/migration/23.0.0-24.0.0.sql index 9d915980f8f..a536b0680a2 100644 --- a/htdocs/install/mysql/migration/23.0.0-24.0.0.sql +++ b/htdocs/install/mysql/migration/23.0.0-24.0.0.sql @@ -90,6 +90,11 @@ ALTER TABLE llx_categorie_mo ADD CONSTRAINT fk_categorie_mo_fk_mo_rowid FOREIGN ALTER TABLE llx_facture ADD COLUMN thirdparty_payment_id integer NULL; +ALTER TABLE llx_facture_fourn ADD COLUMN thirdparty_payment_id integer NULL; + +ALTER TABLE llx_facture_fourn ADD COLUMN payment_reference varchar(25); +ALTER TABLE llx_facture_fourn ADD COLUMN dispute_status integer DEFAULT 0; + -- end of migration diff --git a/htdocs/install/mysql/tables/llx_facture_fourn.sql b/htdocs/install/mysql/tables/llx_facture_fourn.sql index 500a0a87674..932db69b3be 100644 --- a/htdocs/install/mysql/tables/llx_facture_fourn.sql +++ b/htdocs/install/mysql/tables/llx_facture_fourn.sql @@ -75,6 +75,10 @@ create table llx_facture_fourn fk_mode_reglement integer, -- mode de reglement (CHQ, VIR, ...) date_lim_reglement date, -- date limite de reglement + payment_reference varchar(25), -- SEPA and any other national or custom payment id (use case for this field is not clear) + thirdparty_payment_id integer NULL, -- ID of thirdparty payment mode in llx_societe_rib + dispute_status integer DEFAULT 0, -- set to 1 if a dispute on a payment of invoice is open + note_private text, note_public text, fk_incoterms integer, -- for incoterms