dolibarr 18.0.6
server_invoice.php File Reference

File that is entry point to call Dolibarr WebServices. More...

Go to the source code of this file.

Functions

 getInvoice ($authentication, $id='', $ref='', $ref_ext='')
 Get invoice from id, ref or ref_ext.
 
 getInvoicesForThirdParty ($authentication, $idthirdparty)
 Get list of invoices for third party.
 
 createInvoice ($authentication, $invoice)
 Create an invoice.
 
 createInvoiceFromOrder ($authentication, $id_order='', $ref_order='', $ref_ext_order='')
 Create an invoice from an order.
 
 updateInvoice ($authentication, $invoice)
 Uddate an invoice, only change the state of an invoice.
 

Detailed Description

File that is entry point to call Dolibarr WebServices.

Definition in file server_invoice.php.

Function Documentation

◆ createInvoice()

createInvoice ( $authentication,
$invoice )

Create an invoice.

Parameters
array$authenticationArray of authentication information
array$invoiceInvoice
Returns
array Array result

Definition at line 544 of file server_invoice.php.

References check_authentication(), dol_now(), dol_stringtotime(), dol_syslog(), Facture\STATUS_DRAFT, and Facture\STATUS_VALIDATED.

◆ createInvoiceFromOrder()

createInvoiceFromOrder ( $authentication,
$id_order = '',
$ref_order = '',
$ref_ext_order = '' )

Create an invoice from an order.

Parameters
array$authenticationArray of authentication information
string$id_orderid of order to copy invoice from
string$ref_orderref of order to copy invoice from
string$ref_ext_orderref_ext of order to copy invoice from
Returns
array Array result

Definition at line 660 of file server_invoice.php.

References check_authentication(), and dol_syslog().

◆ getInvoice()

getInvoice ( $authentication,
$id = '',
$ref = '',
$ref_ext = '' )

Get invoice from id, ref or ref_ext.

Parameters
array$authenticationArray of authentication information
int$idId
string$refRef
string$ref_extRef_ext
Returns
array Array result

Definition at line 308 of file server_invoice.php.

References check_authentication(), dol_htmlcleanlastbr(), dol_print_date(), and dol_syslog().

◆ getInvoicesForThirdParty()

getInvoicesForThirdParty ( $authentication,
$idthirdparty )

Get list of invoices for third party.

Parameters
array$authenticationArray of authentication information
int$idthirdpartyId thirdparty
Returns
array Array result

Definition at line 413 of file server_invoice.php.

References check_authentication(), dol_print_date(), and dol_syslog().

◆ updateInvoice()

updateInvoice ( $authentication,
$invoice )

Uddate an invoice, only change the state of an invoice.

Parameters
array$authenticationArray of authentication information
Facture$invoiceInvoice
Returns
array Array result

Definition at line 733 of file server_invoice.php.

References check_authentication(), dol_syslog(), Facture\STATUS_ABANDONED, Facture\STATUS_CLOSED, Facture\STATUS_DRAFT, and Facture\STATUS_VALIDATED.