dolibarr 21.0.0-alpha
server_order.php File Reference

File that is entry point to call Dolibarr WebServices. More...

Go to the source code of this file.

Functions

 getOrder ($authentication, $id=0, $ref='', $ref_ext='')
 Get order from id, ref or ref_ext.
 
 getOrdersForThirdParty ($authentication, $idthirdparty)
 Get list of orders for third party.
 
 createOrder ($authentication, $order)
 Create order.
 
 validOrder ($authentication, $id=0, $id_warehouse=0)
 Valid an order.
 
 updateOrder ($authentication, $order)
 Update an order.
 

Detailed Description

File that is entry point to call Dolibarr WebServices.

Definition in file server_order.php.

Function Documentation

◆ createOrder()

createOrder ( $authentication,
$order )

Create order.

Parameters
array{login:string,password:string,entity:?int,dolibarrkey:string}$authentication Array of authentication information
array$orderOrder info
Returns
array array of new order

Definition at line 675 of file server_order.php.

References check_authentication(), dol_now(), dol_stringtotime(), dol_syslog(), and Commande\STATUS_DRAFT.

◆ getOrder()

getOrder ( $authentication,
$id = 0,
$ref = '',
$ref_ext = '' )

Get order from id, ref or ref_ext.

Parameters
array{login:string,password:string,entity:?int,dolibarrkey:string}$authentication Array of authentication information
int$idId
string$refRef
string$ref_extRef_ext
Returns
array Array result

Definition at line 379 of file server_order.php.

References $id, check_authentication(), dol_print_date(), and dol_syslog().

◆ getOrdersForThirdParty()

getOrdersForThirdParty ( $authentication,
$idthirdparty )

Get list of orders for third party.

Parameters
array{login:string,password:string,entity:?int,dolibarrkey:string}$authentication Array of authentication information
int$idthirdpartyId of thirdparty
Returns
array Array result

Definition at line 522 of file server_order.php.

References check_authentication(), dol_print_date(), and dol_syslog().

◆ updateOrder()

updateOrder ( $authentication,
$order )

Update an order.

Parameters
array{login:string,password:string,entity:?int,dolibarrkey:string}$authentication Array of authentication information
array{id:string,ref:string,refext:string}$order Order info
Returns
array Array result

Definition at line 886 of file server_order.php.

References $object, check_authentication(), and dol_syslog().

◆ validOrder()

validOrder ( $authentication,
$id = 0,
$id_warehouse = 0 )

Valid an order.

Parameters
array{login:string,password:string,entity:?int,dolibarrkey:string}$authentication Array of authentication information
int$idId of order to validate
int$id_warehouseId of warehouse to use for stock decrease
Returns
array Array result

Definition at line 817 of file server_order.php.

References $id, check_authentication(), and dol_syslog().