Fixing style errors.
This commit is contained in:
parent
23c2335396
commit
9f4d2ee881
@ -650,12 +650,12 @@ class SupplierInvoices extends DolibarrApi
|
|||||||
if(! DolibarrApiAccess::$user->rights->fournisseur->facture->creer) {
|
if(! DolibarrApiAccess::$user->rights->fournisseur->facture->creer) {
|
||||||
throw new RestException(401);
|
throw new RestException(401);
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = $this->invoice->fetch($id);
|
$result = $this->invoice->fetch($id);
|
||||||
if( ! $result ) {
|
if( ! $result ) {
|
||||||
throw new RestException(404, 'Supplier invoice not found');
|
throw new RestException(404, 'Supplier invoice not found');
|
||||||
}
|
}
|
||||||
|
|
||||||
if(empty($lineid)) {
|
if(empty($lineid)) {
|
||||||
throw new RestException(400, 'Line ID is mandatory');
|
throw new RestException(400, 'Line ID is mandatory');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user