Skip to content
Snippets Groups Projects
Commit 316f6e58 authored by Rodolphe Quiedeville's avatar Rodolphe Quiedeville
Browse files

Ajout log

parent ec0220d2
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment