Merge branch 'Dolibarr:develop' into SHIPMENT_GETS_ALL_ORDER_PRODUCTS
This commit is contained in:
commit
b8a6572fb6
1 changed files with 1 additions and 0 deletions
|
|
@ -1053,6 +1053,7 @@ class Orders extends DolibarrApi
|
|||
}
|
||||
$shipment = new Expedition($this->db);
|
||||
$shipment->socid = $this->commande->socid;
|
||||
$shipment->origin_id = $this->commande->id;
|
||||
$result = $shipment->create(DolibarrApiAccess::$user);
|
||||
if ($result <= 0) {
|
||||
throw new RestException(500, 'Error on creating expedition :'.$this->db->lasterror());
|
||||
|
|
|
|||
Loading…
Reference in a new issue