mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
Merge remote-tracking branch 'upstream/develop' into nospaceaftercomma
This commit is contained in:
@@ -496,7 +496,7 @@ class Orders extends DolibarrApi
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
function validate($id, $idwarehouse=0, $notrigger=0)
|
||||
function validate($id, $idwarehouse = 0, $notrigger = 0)
|
||||
{
|
||||
if(! DolibarrApiAccess::$user->rights->commande->creer) {
|
||||
throw new RestException(401);
|
||||
@@ -565,7 +565,7 @@ class Orders extends DolibarrApi
|
||||
$result = $this->commande->set_reopen(DolibarrApiAccess::$user);
|
||||
if( $result < 0) {
|
||||
throw new RestException(405, $this->commande->error);
|
||||
}else if( $result == 0) {
|
||||
}elseif( $result == 0) {
|
||||
throw new RestException(304);
|
||||
}
|
||||
|
||||
@@ -629,7 +629,7 @@ class Orders extends DolibarrApi
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
function close($id, $notrigger=0)
|
||||
function close($id, $notrigger = 0)
|
||||
{
|
||||
if(! DolibarrApiAccess::$user->rights->commande->creer) {
|
||||
throw new RestException(401);
|
||||
@@ -675,7 +675,7 @@ class Orders extends DolibarrApi
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
function settodraft($id, $idwarehouse=-1)
|
||||
function settodraft($id, $idwarehouse = -1)
|
||||
{
|
||||
if(! DolibarrApiAccess::$user->rights->commande->creer) {
|
||||
throw new RestException(401);
|
||||
|
||||
Reference in New Issue
Block a user