From ed023e8b220cd67c463a6bf4e7fb7255f0b31c70 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 2 Jan 2026 20:31:45 +0100 Subject: [PATCH] Missing amount lifetime (legal requirement) --- htdocs/install/mysql/migration/22.0.0-23.0.0.sql | 4 ++++ htdocs/install/mysql/tables/llx_pos_cash_fence.sql | 3 +++ 2 files changed, 7 insertions(+) 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 1046685add2..cd97d4d8448 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 @@ -401,4 +401,8 @@ ALTER TABLE llx_pos_cash_fence ADD COLUMN hour_close INTEGER DEFAULT null after ALTER TABLE llx_pos_cash_fence ADD COLUMN min_close INTEGER DEFAULT null after hour_close; ALTER TABLE llx_pos_cash_fence ADD COLUMN sec_close INTEGER DEFAULT null after min_close; +ALTER TABLE llx_pos_cash_fence ADD COLUMN cash_lifetime double(24,8) DEFAULT null; +ALTER TABLE llx_pos_cash_fence ADD COLUMN card_lifetime double(24,8) DEFAULT null; +ALTER TABLE llx_pos_cash_fence ADD COLUMN cheque_lifetime double(24,8) DEFAULT null; + -- end of migration diff --git a/htdocs/install/mysql/tables/llx_pos_cash_fence.sql b/htdocs/install/mysql/tables/llx_pos_cash_fence.sql index 4fe7e71c6cd..7dd9289141c 100644 --- a/htdocs/install/mysql/tables/llx_pos_cash_fence.sql +++ b/htdocs/install/mysql/tables/llx_pos_cash_fence.sql @@ -23,6 +23,9 @@ CREATE TABLE llx_pos_cash_fence( cash double(24,8) default 0, card double(24,8) default 0, cheque double(24,8) default 0, + cash_lifetime double(24,8) default NULL, + card_lifetime double(24,8) default NULL, + cheque_lifetime double(24,8) default NULL, status INTEGER, date_creation DATETIME NOT NULL, date_valid DATETIME,