Error management
This commit is contained in:
parent
e2cabd9be7
commit
9c954de081
@ -1091,7 +1091,7 @@ class ExpenseReport extends CommonObject
|
|||||||
{
|
{
|
||||||
$num = $this->ref;
|
$num = $this->ref;
|
||||||
}
|
}
|
||||||
if (empty($num)) return -1;
|
if (empty($num) || $num < 0) return -1;
|
||||||
|
|
||||||
$this->newref = $num;
|
$this->newref = $num;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user