diff --git a/htdocs/paiement.class.php b/htdocs/paiement.class.php index 03e35438a0df450f99283438368bb634605d2436..8aa9d56a0205b179d9affc6f4a8503fae064e588 100644 --- a/htdocs/paiement.class.php +++ b/htdocs/paiement.class.php @@ -189,12 +189,13 @@ class Paiement } } - if ( $total > 0 && $sql_err == 0 ) + if ( $total <> 0 && $sql_err == 0 ) // On accepte les montants n�gatifs { if ($no_commit == 0) { $this->db->commit(); } + dolibarr_syslog("Paiement::Create Ok Total = $total"); return $this->id; } else @@ -203,6 +204,7 @@ class Paiement { $this->db->rollback(); } + dolibarr_syslog("Paiement::Create Erreur"); return -1; }