From 316f6e5873b03a80747b8d929f82d59ef44baef6 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville <rodolphe@quiedeville.org> Date: Tue, 1 Mar 2005 15:30:29 +0000 Subject: [PATCH] Ajout log --- htdocs/paiement.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/paiement.class.php b/htdocs/paiement.class.php index 03e35438a0d..8aa9d56a020 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; } -- GitLab