diff --git a/mysql/migration/2.0.0-2.1.0.sql b/mysql/migration/2.0.0-2.1.0.sql index 81ebad1b369..d06cc8fd288 100644 --- a/mysql/migration/2.0.0-2.1.0.sql +++ b/mysql/migration/2.0.0-2.1.0.sql @@ -435,4 +435,8 @@ create table llx_accountingdebcred fk_account integer NOT NULL, amount real NOT NULL, direction varchar(1) NOT NULL -)type=innodb; \ No newline at end of file +)type=innodb; + +alter table llx_facturedet_rec add column total_ht real; +alter table llx_facturedet_rec add column total_tva real; +alter table llx_facturedet_rec add column total_ttc real; \ No newline at end of file diff --git a/mysql/tables/llx_facturedet_rec.sql b/mysql/tables/llx_facturedet_rec.sql index 8961dbe74cd..d37f290591a 100644 --- a/mysql/tables/llx_facturedet_rec.sql +++ b/mysql/tables/llx_facturedet_rec.sql @@ -30,5 +30,8 @@ create table llx_facturedet_rec remise_percent real DEFAULT 0, -- pourcentage de remise remise real DEFAULT 0, -- montant de la remise subprice real, -- prix avant remise - price real -- prix final + price real, -- prix final + total_ht real, -- Total HT de la ligne toute quantité et incluant remise ligne et globale + total_tva real, -- Total TVA de la ligne toute quantité et incluant remise ligne et globale + total_ttc real -- Total TTC de la ligne toute quantité et incluant remise ligne et globale )type=innodb;