parent
336960453f
commit
3ebf64de63
1 changed files with 1 additions and 1 deletions
|
|
@ -666,7 +666,7 @@ class Invoices extends DolibarrApi
|
|||
}
|
||||
|
||||
$result = $this->invoice->delete(DolibarrApiAccess::$user);
|
||||
if ($result < 0) {
|
||||
if ($result <= 0) {
|
||||
throw new RestException(500, 'Error when deleting invoice');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue