dolibarr 21.0.0-beta
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{id:string,ref:string,ref_client:string,ref_ext:string,thirdparty_id:int,status:int,billed:string,total_net:float,total_vat:float,total_localtax1:float,total_localtax2:float,total:float,date:string,date_creation:string,date_validation:string,date_modification:string,source:string,note_private:string,note_public:string,project_id:string,mode_reglement_id:string,mode_reglement_code:string,mode_reglement:string,cond_reglement_id:string,cond_reglement_code:string,cond_reglement:string,cond_reglement_doc:string,date_livraison:int,demand_reason_id:string,lines:array{lines:array<array{id:string,type:int,fk_commande:int,fk_parent_line:int,desc:string,qty:float,price:float,unitprice:float,vat_rate:float,remise:float,remise_percent:float,total_net:float,total_vat:float,total:float,date_start:int,date_end:int,product_id:int,product_ref:string,product_label:string,product_desc:string}>}}$order Order info
Returns
array{result:array{result_code:string,result_label:string}} Array result

Definition at line 680 of file server_order.php.

References $conf, 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{result:array{result_code:string,result_label:string}} Array result

Definition at line 382 of file server_order.php.

References $conf, $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{result:array{result_code:string,result_label:string}} Array result

Definition at line 525 of file server_order.php.

References $conf, 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{result:array{result_code:string,result_label:string}} Array result

Definition at line 895 of file server_order.php.

References $conf, $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{result:array{result_code:string,result_label:string}} Array result

Definition at line 826 of file server_order.php.

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