add messages

This commit is contained in:
frederic34
2015-11-09 18:13:17 +01:00
parent 7349862b64
commit b8a84d68ec
3 changed files with 19 additions and 8 deletions

View File

@@ -2866,6 +2866,7 @@ abstract class CommonObject
}
else
{
$this->errors[] = $this->db->lasterror();
return false;
}
}
@@ -2875,7 +2876,7 @@ abstract class CommonObject
*
* @param int $id_incoterm Id of incoterm to set or '' to remove
* @param string $location location of incoterm
* @return int <0 if KO, >0 if OK
* @return int >0 if KO, <0 if OK
*/
function setIncoterms($id_incoterm, $location)
{
@@ -2903,6 +2904,7 @@ abstract class CommonObject
}
else
{
$this->errors[] = $this->db->lasterror();
return -1;
}
}