From 3bc8d435a4153bf4070a2a30023d2bbbca4eed27 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 22 Oct 2025 12:35:30 +0200 Subject: [PATCH] WIP LNE --- htdocs/install/mysql/migration/22.0.0-23.0.0.sql | 1 + htdocs/install/mysql/tables/llx_facture.sql | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/install/mysql/migration/22.0.0-23.0.0.sql b/htdocs/install/mysql/migration/22.0.0-23.0.0.sql index 44096d30aa6..d357501d02e 100644 --- a/htdocs/install/mysql/migration/22.0.0-23.0.0.sql +++ b/htdocs/install/mysql/migration/22.0.0-23.0.0.sql @@ -114,6 +114,7 @@ ALTER TABLE llx_accounting_analytic_distribution ADD CONSTRAINT fk_accounting_an ALTER TABLE llx_facture ADD COLUMN dispute_status integer DEFAULT 0 after payment_reference; ALTER TABLE llx_facture ADD COLUMN ip varchar(250); +ALTER TABLE llx_facture ADD COLUMN pos_print_counter integer DEFAULT 0; ALTER TABLE llx_commande ADD COLUMN ip varchar(250); ALTER TABLE llx_commande ADD COLUMN user_agent varchar(255); diff --git a/htdocs/install/mysql/tables/llx_facture.sql b/htdocs/install/mysql/tables/llx_facture.sql index dabca7ae65e..e6c0a941fd8 100644 --- a/htdocs/install/mysql/tables/llx_facture.sql +++ b/htdocs/install/mysql/tables/llx_facture.sql @@ -67,7 +67,9 @@ create table llx_facture fk_user_closing integer, -- user closing module_source varchar(32), -- name of module when invoice generated by a dedicated module (POS, ecommerce...) - pos_source varchar(32), -- numero of POS terminal when order is generated by a POS module, IDsession@IDwebsite when order is generated for a website basket. + pos_source varchar(32), -- numero of POS terminal when order is generated by a POS module, IDsession@IDwebsite when invoice is generated for a website ecommerce. + pos_print_counter integer DEFAULT 0, -- counter used to track how many times the ticket was printed. + fk_fac_rec_source integer, -- facture rec source fk_facture_source integer, -- facture origin if credit notes or replacement invoice fk_projet integer DEFAULT NULL, -- project invoice is linked to