diff --git a/htdocs/fourn/class/fournisseur.facture.class.php b/htdocs/fourn/class/fournisseur.facture.class.php index 1527f1b14e3bb..f02b938b3b3e0 100644 --- a/htdocs/fourn/class/fournisseur.facture.class.php +++ b/htdocs/fourn/class/fournisseur.facture.class.php @@ -1207,8 +1207,8 @@ public function update($user = null, $notrigger = 0) if (empty($this->total_localtax2)) { $this->total_localtax2 = 0; } - if (empty($this->total_ttc)) { - $this->total_ttc = 0; + if (isset($this->total_ttc)) { + $this->total_ttc = (float) $this->total_ttc; } if (isset($this->statut)) { $this->statut = (int) $this->statut;