From a5a55b37c57f541f32c91b7887d5eef5d25b3838 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 26 Apr 2023 11:28:05 +0200 Subject: [PATCH] Add column subtype --- htdocs/install/mysql/migration/17.0.0-18.0.0.sql | 2 ++ htdocs/install/mysql/tables/llx_facture.sql | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/install/mysql/migration/17.0.0-18.0.0.sql b/htdocs/install/mysql/migration/17.0.0-18.0.0.sql index cf71f0a02e4..d47e84a255d 100644 --- a/htdocs/install/mysql/migration/17.0.0-18.0.0.sql +++ b/htdocs/install/mysql/migration/17.0.0-18.0.0.sql @@ -397,3 +397,5 @@ ALTER TABLE llx_mailing ADD COLUMN name_from varchar(128) AFTER email_from; ALTER TABLE llx_bom_bomline ADD COLUMN fk_default_workstation integer DEFAULT NULL; ALTER TABLE llx_mrp_production ADD COLUMN fk_default_workstation integer DEFAULT NULL; + +ALTER TABLE llx_facture ADD COLUMN subtype smallint DEFAULT NULL; diff --git a/htdocs/install/mysql/tables/llx_facture.sql b/htdocs/install/mysql/tables/llx_facture.sql index e1c82e62f2d..ff0ff2ce129 100644 --- a/htdocs/install/mysql/tables/llx_facture.sql +++ b/htdocs/install/mysql/tables/llx_facture.sql @@ -33,13 +33,15 @@ create table llx_facture ref_client varchar(255), -- reference for customer type smallint DEFAULT 0 NOT NULL, -- type of invoice + subtype smallint DEFAULT NULL, -- subtype of invoice (some countries need a subtype to classify invoices) fk_soc integer NOT NULL, + datec datetime, -- date de creation de la facture datef date, -- date invoice date_pointoftax date DEFAULT NULL, -- date point of tax (for GB) date_valid date, -- date validation tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- last modification date - date_closing datetime, -- date de cloture + date_closing datetime, -- date de cloture paye smallint DEFAULT 0 NOT NULL, remise_percent real DEFAULT 0, -- remise relative