diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php
index f10924b2f095e61e7de22efcc81c9fa680beb890..ed64c98c31e1cb7326033b90e2490252e1fa180a 100644
--- a/htdocs/commande/class/commande.class.php
+++ b/htdocs/commande/class/commande.class.php
@@ -896,7 +896,10 @@ class Commande extends CommonObject
         if (empty($qty)) $qty=0;
         if (empty($info_bits)) $info_bits=0;
         if (empty($rang)) $rang=0;
-
+        if (empty($txtva)) $txtva=0;
+        if (empty($txlocaltax1)) $txlocaltax1=0;
+        if (empty($txlocaltax2)) $txlocaltax2=0;
+        
 		$remise_percent=price2num($remise_percent);
 		$qty=price2num($qty);
 		$pu_ht=price2num($pu_ht);
diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php
index 492142841dc5e3141fb13d1d1eb597e4df93e4b6..fe87efa7684f5c89dcedfd5d60c9fdb537026b23 100644
--- a/htdocs/compta/facture/class/facture.class.php
+++ b/htdocs/compta/facture/class/facture.class.php
@@ -1683,7 +1683,10 @@ class Facture extends CommonObject
         if (empty($info_bits)) $info_bits=0;
         if (empty($rang)) $rang=0;
         if (empty($ventil)) $ventil=0;
-
+        if (empty($txtva)) $txtva=0;
+        if (empty($txlocaltax1)) $txlocaltax1=0;
+        if (empty($txlocaltax2)) $txlocaltax2=0;
+        
         $remise_percent=price2num($remise_percent);
         $qty=price2num($qty);
         $pu_ht=price2num($pu_ht);