Remove the get in url. The GET is already in the method.
This commit is contained in:
parent
f5e1ca3178
commit
d70f9e053e
@ -710,9 +710,9 @@ class Invoices extends DolibarrApi
|
|||||||
* @throws 405
|
* @throws 405
|
||||||
*/
|
*/
|
||||||
function useCreditNote($id, $discountid) {
|
function useCreditNote($id, $discountid) {
|
||||||
|
|
||||||
require_once DOL_DOCUMENT_ROOT . '/core/class/discount.class.php';
|
require_once DOL_DOCUMENT_ROOT . '/core/class/discount.class.php';
|
||||||
|
|
||||||
if(! DolibarrApiAccess::$user->rights->facture->creer) {
|
if(! DolibarrApiAccess::$user->rights->facture->creer) {
|
||||||
throw new RestException(401);
|
throw new RestException(401);
|
||||||
}
|
}
|
||||||
@ -745,7 +745,7 @@ class Invoices extends DolibarrApi
|
|||||||
*
|
*
|
||||||
* @param int $id Id of invoice
|
* @param int $id Id of invoice
|
||||||
*
|
*
|
||||||
* @url GET {id}/getpayments
|
* @url GET {id}/payments
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
* @throws 400
|
* @throws 400
|
||||||
@ -775,7 +775,7 @@ class Invoices extends DolibarrApi
|
|||||||
if( $result < 0) {
|
if( $result < 0) {
|
||||||
throw new RestException(405, $this->invoice->error);
|
throw new RestException(405, $this->invoice->error);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user