Update api_orders.class.php

This commit is contained in:
Laurent Destailleur
2021-08-28 14:42:31 +02:00
committed by GitHub
parent b9039eea14
commit d98390e675

View File

@@ -970,18 +970,17 @@ class Orders extends DolibarrApi
/**
* Get the shipments of an order
*
*
* @param int $id Id of the order
*
* @url GET {id}/shipment
*
* @return array
*
* @throws RestException 401
* @throws RestException 404
* @throws RestException 500
*
* @return array
*/
public function getOrderShipements($id)
public function getOrderShipments($id)
{
require_once DOL_DOCUMENT_ROOT.'/expedition/class/expedition.class.php';
if (!DolibarrApiAccess::$user->rights->expedition->lire) {