diff --git a/htdocs/paiement.class.php b/htdocs/paiement.class.php index 3d979cb44a1..a2c3c0401d1 100644 --- a/htdocs/paiement.class.php +++ b/htdocs/paiement.class.php @@ -121,7 +121,7 @@ class Paiement $value = trim($value); $amount = round(ereg_replace(",",".",$value), 2); - if (is_numeric($amount)) + if (is_numeric($amount) && $amount > 0) { $sql = "INSERT INTO ".MAIN_DB_PREFIX."paiement_facture (fk_facture, fk_paiement, amount)"; $sql .= " VALUES (".$facid.",". $this->id.",". $amount.")";