From 42f5ca15dfc496ef03c2571fcdaea72e339ac863 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Thu, 19 Sep 2013 14:58:35 +0200 Subject: [PATCH] Fix: Add missing field info_bits into predefined invoices. --- htdocs/install/mysql/migration/3.4.0-3.5.0.sql | 4 ++++ htdocs/install/mysql/tables/llx_facturedet_rec.sql | 1 + 2 files changed, 5 insertions(+) diff --git a/htdocs/install/mysql/migration/3.4.0-3.5.0.sql b/htdocs/install/mysql/migration/3.4.0-3.5.0.sql index 2c3542a777d..60aacc47626 100755 --- a/htdocs/install/mysql/migration/3.4.0-3.5.0.sql +++ b/htdocs/install/mysql/migration/3.4.0-3.5.0.sql @@ -46,6 +46,10 @@ create table llx_commandedet_extrafields ALTER TABLE llx_commandedet_extrafields ADD INDEX idx_commandedet_extrafields (fk_object); + +ALTER TABLE llx_facturedet_rec ADD COLUMN info_bits integer DEFAULT 0 after total_ttc; -- TVA NPR ou non + + create table llx_facturedet_extrafields ( rowid integer AUTO_INCREMENT PRIMARY KEY, diff --git a/htdocs/install/mysql/tables/llx_facturedet_rec.sql b/htdocs/install/mysql/tables/llx_facturedet_rec.sql index fe03eb08e4b..8da2d147574 100644 --- a/htdocs/install/mysql/tables/llx_facturedet_rec.sql +++ b/htdocs/install/mysql/tables/llx_facturedet_rec.sql @@ -43,6 +43,7 @@ create table llx_facturedet_rec total_localtax1 double(24,8) DEFAULT 0, -- Total LocalTax1 for total quantity of line total_localtax2 double(24,8) DEFAULT 0, -- total LocalTax2 for total quantity of line total_ttc double(24,8), -- Total TTC de la ligne toute quantity et incluant remise ligne et globale + info_bits integer DEFAULT 0, -- TVA NPR ou non special_code integer UNSIGNED DEFAULT 0, -- code pour les lignes speciales rang integer DEFAULT 0 -- ordre d'affichage -- GitLab