From 57fa01759105fbe8bb4e5ff7f405c39092bbd428 Mon Sep 17 00:00:00 2001 From: sonikf <93765174+sonikf@users.noreply.github.com> Date: Sat, 26 Oct 2024 14:07:33 +0300 Subject: [PATCH] NEW Add payment reference - SQL Part (#31553) * NEW Add payment reference - SQL Part * NEW Add payment reference - SQL Part * NEW Add payment reference - SQL Part * Update llx_facture.sql * Update llx_societe.sql --- htdocs/install/mysql/migration/20.0.0-21.0.0.sql | 2 ++ htdocs/install/mysql/tables/llx_facture.sql | 2 +- htdocs/install/mysql/tables/llx_societe.sql | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) 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