Skip to content
Snippets Groups Projects
Commit 11afa519 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Qual: Ajout logs

parent ac180912
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,7 @@ class Paiement ...@@ -68,7 +68,7 @@ class Paiement
/** /**
* \brief Récupère l'objet paiement * \brief Récupère l'objet paiement
* \param id id du paiement a récupérer * \param id id du paiement a récupérer
* \return int <0 si ko, >0 si ok * \return int <0 si ko, 0 si non trouvé, >0 si ok
*/ */
function fetch($id) function fetch($id)
{ {
...@@ -80,6 +80,7 @@ class Paiement ...@@ -80,6 +80,7 @@ class Paiement
$sql.= ' WHERE p.fk_paiement = c.id'; $sql.= ' WHERE p.fk_paiement = c.id';
$sql.= ' AND p.rowid = '.$id; $sql.= ' AND p.rowid = '.$id;
dolibarr_syslog("Paiement::fetch sql=".$sql);
$result = $this->db->query($sql); $result = $this->db->query($sql);
if ($result) if ($result)
...@@ -98,13 +99,15 @@ class Paiement ...@@ -98,13 +99,15 @@ class Paiement
$this->type_libelle = $obj->type_libelle; $this->type_libelle = $obj->type_libelle;
$this->type_code = $obj->type_code; $this->type_code = $obj->type_code;
$this->statut = $obj->statut; $this->statut = $obj->statut;
$this->db->free($result);
return 1; return 1;
} }
else else
{ {
return -2;
}
$this->db->free($result); $this->db->free($result);
return 0;
}
} }
else else
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment