diff --git a/htdocs/facture.class.php b/htdocs/facture.class.php index 3f0e88c6b280db46acb491a267ff26c91a2cb8e3..9ae21d4c22b7eb657e0f77d55fadebbf1c116526 100644 --- a/htdocs/facture.class.php +++ b/htdocs/facture.class.php @@ -2223,7 +2223,7 @@ class FactureLigne var $produit_id; var $date_start; var $date_end; - var $info_bits; + var $info_bits; // 0 si TVA normal, 1 si TVA NPR /** diff --git a/mysql/migration/2.0.0-2.1.0.sql b/mysql/migration/2.0.0-2.1.0.sql index e214943830c11bcefa314db40ff6822993ed2a17..23eabdbd05c64e60887f5fd657caeab9d8bd8968 100644 --- a/mysql/migration/2.0.0-2.1.0.sql +++ b/mysql/migration/2.0.0-2.1.0.sql @@ -79,8 +79,11 @@ ALTER TABLE llx_facture_fourn_det ADD INDEX idx_facture_fourn_det_fk_facture (fk ALTER TABLE llx_facture_fourn_det ADD CONSTRAINT fk_facture_fourn_det_fk_facture FOREIGN KEY (fk_facture_fourn) REFERENCES llx_facture_fourn (rowid); +ALTER TABLE llx_facturedet ADD COLUMN total_ht real after price; +ALTER TABLE llx_facturedet ADD COLUMN total_tva real; +ALTER TABLE llx_facturedet ADD COLUMN total_ttc real; ALTER TABLE llx_facturedet ADD COLUMN info_bits integer DEFAULT 0 after date_end; - + ALTER TABLE llx_commande ADD INDEX idx_commande_fk_soc (fk_soc); ALTER TABLE llx_commande ADD CONSTRAINT fk_commande_societe FOREIGN KEY (fk_soc) REFERENCES llx_societe (idp);