Doxygen
This commit is contained in:
parent
285a3d59dd
commit
3b5d63440a
@ -227,19 +227,20 @@ class PaymentTerm // extends CommonObject
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Return id of default payment term
|
* Return id of default payment term
|
||||||
* \return int <0 if KO, >0 if OK
|
* @return int <0 if KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
function getDefaultId()
|
function getDefaultId()
|
||||||
{
|
{
|
||||||
global $langs;
|
global $langs;
|
||||||
|
|
||||||
|
$ret=0;
|
||||||
|
|
||||||
$sql = "SELECT";
|
$sql = "SELECT";
|
||||||
$sql.= " t.rowid";
|
$sql.= " t.rowid";
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX."c_payment_term as t";
|
$sql.= " FROM ".MAIN_DB_PREFIX."c_payment_term as t";
|
||||||
$sql.= " WHERE t.code = 'RECEP'";
|
$sql.= " WHERE t.code = 'RECEP'";
|
||||||
|
|
||||||
$ret=0;
|
|
||||||
|
|
||||||
dol_syslog(get_class($this)."::getDefaultId sql=".$sql, LOG_DEBUG);
|
dol_syslog(get_class($this)."::getDefaultId sql=".$sql, LOG_DEBUG);
|
||||||
$resql=$this->db->query($sql);
|
$resql=$this->db->query($sql);
|
||||||
if ($resql)
|
if ($resql)
|
||||||
@ -255,7 +256,7 @@ class PaymentTerm // extends CommonObject
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->error="Error ".$this->db->lasterror();
|
$this->error="Error ".$this->db->lasterror();
|
||||||
dol_syslog(get_class($this)."::fetch ".$this->error, LOG_ERR);
|
dol_syslog(get_class($this)."::getDefaultId ".$this->error, LOG_ERR);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user