From 349a9555161495ea44c64b374ad5681165330068 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 22 Jun 2006 22:07:44 +0000 Subject: [PATCH] Trad: Ajout champ total_ht, total_tva et total_ttc au niveau de lignes detail des entites --- htdocs/install/upgrade2.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/htdocs/install/upgrade2.php b/htdocs/install/upgrade2.php index 4e4b167cc7d..e202edd508c 100644 --- a/htdocs/install/upgrade2.php +++ b/htdocs/install/upgrade2.php @@ -887,6 +887,14 @@ function migrate_price_commande($db,$langs,$conf) $db->free(); + $sql = "DELETE FROM ".MAIN_DB_PREFIX."commandedet"; + $sql.= " WHERE price = 0 and total_ttc = 0 and total_tva = 0 and total_ht = 0"; + $resql=$db->query($sql); + if (! $resql) + { + dolibarr_print_error($db); + } + $db->rollback(); } else