From 844775501d12573daf650fc18b1f6c51701ea22d Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Sun, 1 Mar 2020 18:46:12 +0100 Subject: [PATCH] Update api_invoices.class.php --- .../compta/facture/class/api_invoices.class.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/htdocs/compta/facture/class/api_invoices.class.php b/htdocs/compta/facture/class/api_invoices.class.php index d36022068df..af69fd79008 100644 --- a/htdocs/compta/facture/class/api_invoices.class.php +++ b/htdocs/compta/facture/class/api_invoices.class.php @@ -651,7 +651,7 @@ class Invoices extends DolibarrApi * @throws RestException 304 * @throws RestException 401 * @throws RestException 404 - * @throws RestException 500 + * @throws RestException 400 */ public function postLine($id, $request_data = null) { @@ -980,10 +980,10 @@ class Invoices extends DolibarrApi * * @return array An invoice object * - * @throws RestException 400 + * @throws RestException 304 * @throws RestException 401 * @throws RestException 404 - * @throws RestException 405 + * @throws RestException 500 */ public function markAsCreditAvailable($id) { @@ -1155,10 +1155,11 @@ class Invoices extends DolibarrApi * @url POST {id}/usediscount/{discountid} * * @return int - * @throws 400 - * @throws 401 - * @throws 404 - * @throws 405 + * + * @throws RestException 400 + * @throws RestException 401 + * @throws RestException 404 + * @throws RestException 405 */ public function useDiscount($id, $discountid) {