DeliverOrder
int CSaleOrder::DeliverOrder( int ID, string Val );
The method DeliverOrder modifies the value of the ALLOW_DELIVERY field. Besides, it sets the fields DATE_ALLOW_DELIVERY (date when the order shipment was allowed) and EMP_ALLOW_DELIVERY_ID (the ID of a user (web shop member) who sets this flag).
Parameters
Parameter | Description |
---|---|
ID | The order ID. |
Val | New value of the order cancellation flag (Y/N). |
Returned values
Returns the order ID on success, or false otherwise.
Example
<? if (!CSaleOrder::DeliverOrder(23, "Y")) echo "Error updating order 23"; ?>
© «Bitrix24», 2001-2024