Fix syntax error
This commit is contained in:
parent
91f80934f3
commit
7cdfff7263
@ -593,7 +593,7 @@ class Proposals extends DolibarrApi
|
|||||||
throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login);
|
throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login);
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = $this->propal->setDraftDolibarrApiAccess::$user);
|
$result = $this->propal->setDraft(DolibarrApiAccess::$user);
|
||||||
if ($result == 0) {
|
if ($result == 0) {
|
||||||
throw new RestException(304, 'Nothing done. May be object is already draft');
|
throw new RestException(304, 'Nothing done. May be object is already draft');
|
||||||
}
|
}
|
||||||
|
|||||||
@ -770,7 +770,7 @@ class Orders extends DolibarrApi
|
|||||||
throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login);
|
throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login);
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = $this->commande->setDraftDolibarrApiAccess::$user, $idwarehouse);
|
$result = $this->commande->setDraft(DolibarrApiAccess::$user, $idwarehouse);
|
||||||
if ($result == 0) {
|
if ($result == 0) {
|
||||||
throw new RestException(304, 'Nothing done. May be object is already closed');
|
throw new RestException(304, 'Nothing done. May be object is already closed');
|
||||||
}
|
}
|
||||||
|
|||||||
@ -745,7 +745,7 @@ class Invoices extends DolibarrApi
|
|||||||
throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login);
|
throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login);
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = $this->invoice->setDraftDolibarrApiAccess::$user, $idwarehouse);
|
$result = $this->invoice->setDraft(DolibarrApiAccess::$user, $idwarehouse);
|
||||||
if ($result == 0) {
|
if ($result == 0) {
|
||||||
throw new RestException(304, 'Nothing done.');
|
throw new RestException(304, 'Nothing done.');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user