Doc: Mise a jour doc doxygen

This commit is contained in:
Laurent Destailleur 2005-11-08 00:04:29 +00:00
parent 8e74544996
commit e5e84eb7a1

View File

@ -280,26 +280,32 @@ class FactureFournisseur
} }
} }
/** /**
* \brief Tag la facture comme payée complètement * \brief Tag la facture comme payée complètement
* \param userid utilisateur qui modifie l'état * \param user Objet utilisateur qui modifie l'état
* \return int <0 si ko, >0 si ok * \return int <0 si ko, >0 si ok
*/ */
function set_payed($user) function set_payed($user)
{ {
$sql = 'UPDATE '.MAIN_DB_PREFIX.'facture_fourn set paye = 1 WHERE rowid = '.$this->id.';'; $sql = 'UPDATE '.MAIN_DB_PREFIX.'facture_fourn';
$sql.= ' SET paye = 1';
$sql.= ' WHERE rowid = '.$this->id;
$resql = $this->db->query($sql); $resql = $this->db->query($sql);
if (! $resql) if (! $resql)
{ {
$this->error=$this->db->error();
dolibarr_print_error($this->db); dolibarr_print_error($this->db);
return -1; return -1;
} }
return 1; return 1;
} }
/** /**
* \brief Tag la facture comme validée et valide la facture * \brief Tag la facture comme validée
* \param userid utilisateur qui valide la facture * \param user Objet utilisateur qui valide la facture
* \return int <0 si ko, >0 si ok
*/ */
function set_valid($user) function set_valid($user)
{ {
@ -309,8 +315,11 @@ class FactureFournisseur
$resql = $this->db->query($sql); $resql = $this->db->query($sql);
if (! $resql) if (! $resql)
{ {
$this->error=$this->db->error();
dolibarr_print_error($this->db); dolibarr_print_error($this->db);
return -1;
} }
return 1;
} }