Update expensereport.class.php

This commit is contained in:
Laurent Destailleur 2017-11-17 13:09:03 +01:00 committed by GitHub
parent acc2fcbddd
commit 2077f7ad96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1520,13 +1520,13 @@ class ExpenseReport extends CommonObject
$this->error=$obj->error;
$this->errors=$obj->errors;
//dol_print_error($this->db,get_class($this)."::getNextNumRef ".$obj->error);
return "";
return -1;
}
}
else
{
setEventMessages($langs->transnoentitiesnoconv("Error_EXPENSEREPORT_ADDON_NotDefined"), null, 'errors');
$errors++;
$this->error = "Error_EXPENSEREPORT_ADDON_NotDefined";
return -2;
}
}