Skip to content

Commit

Permalink
Remove the get in url. The GET is already in the method.
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Nov 2, 2017
1 parent f5e1ca3 commit d70f9e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions htdocs/compta/facture/class/api_invoices.class.php
Expand Up @@ -710,9 +710,9 @@ function useDiscount($id, $discountid) {
* @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);
}
Expand Down Expand Up @@ -745,7 +745,7 @@ function useCreditNote($id, $discountid) {
*
* @param int $id Id of invoice
*
* @url GET {id}/getpayments
* @url GET {id}/payments
*
* @return array
* @throws 400
Expand Down Expand Up @@ -775,7 +775,7 @@ function getPayments($id) {
if( $result < 0) {
throw new RestException(405, $this->invoice->error);
}

return $result;
}

Expand Down

0 comments on commit d70f9e0

Please sign in to comment.