mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Update api_invoices.class.php
This commit is contained in:
parent
3d0af97e79
commit
5bf3a1f175
|
|
@ -921,7 +921,7 @@ class Invoices extends DolibarrApi
|
|||
}
|
||||
|
||||
/**
|
||||
* Create credit note from invoice
|
||||
* Create a discount (credit available) for a credit note or a deposit.
|
||||
*
|
||||
* @param int $id Invoice ID
|
||||
* @url POST {id}/createCreditNote
|
||||
|
|
@ -934,7 +934,7 @@ class Invoices extends DolibarrApi
|
|||
* @throws 404
|
||||
* @throws 500
|
||||
*/
|
||||
function createCreditNote($id)
|
||||
function markAsCreditAvailable($id)
|
||||
{
|
||||
if(! DolibarrApiAccess::$user->rights->facture->creer) {
|
||||
throw new RestException(401);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user