diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php index 5fe1f87f915..db2e5b249bd 100644 --- a/htdocs/compta/facture/class/facture.class.php +++ b/htdocs/compta/facture/class/facture.class.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2009 Laurent Destailleur + * Copyright (C) 2004-2010 Laurent Destailleur * Copyright (C) 2004 Sebastien Di Cintio * Copyright (C) 2004 Benoit Mortier * Copyright (C) 2005 Marc Barilley / Ocebo @@ -3016,8 +3016,9 @@ class FactureLigne // Clean parameters $this->desc=trim($this->desc); - if (! $this->subprice) $this->subprice=0; - if (! $this->price) $this->price=0; + if (empty($this->subprice)) $this->subprice=0; + if (empty($this->price)) $this->price=0; + if (empty($this->tva_tx)) $this->tva_tx=0; // Check parameters if ($this->product_type < 0) return -1;