|
dolibarr 21.0.0-beta
|
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. | |
File that is entry point to call Dolibarr WebServices.
Definition in file server_order.php.
| createOrder | ( | $authentication, | |
| $order ) |
Create order.
| 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 |
Definition at line 680 of file server_order.php.
References $conf, check_authentication(), dol_now(), dol_stringtotime(), dol_syslog(), and Commande\STATUS_DRAFT.
| getOrder | ( | $authentication, | |
| $id = 0, | |||
| $ref = '', | |||
| $ref_ext = '' ) |
Get order from id, ref or ref_ext.
| array{login:string,password:string,entity:?int,dolibarrkey:string} | $authentication Array of authentication information | |
| int | $id | Id |
| string | $ref | Ref |
| string | $ref_ext | Ref_ext |
Definition at line 382 of file server_order.php.
References $conf, $id, check_authentication(), dol_print_date(), and dol_syslog().
| getOrdersForThirdParty | ( | $authentication, | |
| $idthirdparty ) |
Get list of orders for third party.
| array{login:string,password:string,entity:?int,dolibarrkey:string} | $authentication Array of authentication information | |
| int | $idthirdparty | Id of thirdparty |
Definition at line 525 of file server_order.php.
References $conf, check_authentication(), dol_print_date(), and dol_syslog().
| updateOrder | ( | $authentication, | |
| $order ) |
Update an order.
| array{login:string,password:string,entity:?int,dolibarrkey:string} | $authentication Array of authentication information |
| array{id:string,ref:string,refext:string} | $order Order info |
Definition at line 895 of file server_order.php.
References $conf, $object, check_authentication(), and dol_syslog().
| validOrder | ( | $authentication, | |
| $id = 0, | |||
| $id_warehouse = 0 ) |
Valid an order.
| array{login:string,password:string,entity:?int,dolibarrkey:string} | $authentication Array of authentication information | |
| int | $id | Id of order to validate |
| int | $id_warehouse | Id of warehouse to use for stock decrease |
Definition at line 826 of file server_order.php.
References $conf, $id, check_authentication(), and dol_syslog().