This commit is contained in:
Laurent Destailleur 2020-04-27 15:09:27 +02:00
parent a1142f884d
commit 6b1a1e5e58

View File

@ -33,7 +33,8 @@ class Orders extends DolibarrApi
* @var array $FIELDS Mandatory fields, checked when create and update object * @var array $FIELDS Mandatory fields, checked when create and update object
*/ */
static $FIELDS = array( static $FIELDS = array(
'socid' 'socid',
'date'
); );
/** /**
@ -233,7 +234,9 @@ class Orders extends DolibarrApi
} }
/** /**
* Create order object * Create a sale order
*
* Exemple: { "socid": 2, "date": 1595196000, "type": 0, "lines": [{ "fk_product": 2, "qty": 1 }] }
* *
* @param array $request_data Request data * @param array $request_data Request data
* @return int ID of order * @return int ID of order