From d70f9e053e79de9a419aa354c31e2ec6d53ffa1b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 2 Nov 2017 16:01:13 +0100 Subject: [PATCH] Remove the get in url. The GET is already in the method. --- htdocs/compta/facture/class/api_invoices.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/compta/facture/class/api_invoices.class.php b/htdocs/compta/facture/class/api_invoices.class.php index 801fb03e6fe..c1bfbcd6330 100644 --- a/htdocs/compta/facture/class/api_invoices.class.php +++ b/htdocs/compta/facture/class/api_invoices.class.php @@ -710,9 +710,9 @@ class Invoices extends DolibarrApi * @throws 405 */ function useCreditNote($id, $discountid) { - + require_once DOL_DOCUMENT_ROOT . '/core/class/discount.class.php'; - + if(! DolibarrApiAccess::$user->rights->facture->creer) { throw new RestException(401); } @@ -745,7 +745,7 @@ class Invoices extends DolibarrApi * * @param int $id Id of invoice * - * @url GET {id}/getpayments + * @url GET {id}/payments * * @return array * @throws 400 @@ -775,7 +775,7 @@ class Invoices extends DolibarrApi if( $result < 0) { throw new RestException(405, $this->invoice->error); } - + return $result; }