dolibarr  20.0.0-alpha
Functions
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=0, $ref='', $ref_ext='')
 Get invoice from id, ref or ref_ext. More...
 
 getInvoicesForThirdParty ($authentication, $idthirdparty)
 Get list of invoices for third party. More...
 
 createInvoice ($authentication, $invoice)
 Create an invoice. More...
 
 createInvoiceFromOrder ($authentication, $id_order='', $ref_order='', $ref_ext_order='')
 Create an invoice from an order. More...
 
 updateInvoice ($authentication, $invoice)
 Update an invoice, only change the state of an invoice. More...
 

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 553 of file server_invoice.php.

◆ createInvoiceFromOrder()

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

Create an invoice from an order.

Parameters
array{login:string,password:string,entity:?int,dolibarrkey:string}$authentication Array 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{result:array{result_code:string,result_label:string},id?:int,ref?:string,ref_ext?:string} Array result

Definition at line 672 of file server_invoice.php.

◆ getInvoice()

getInvoice (   $authentication,
  $id = 0,
  $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 309 of file server_invoice.php.

◆ 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 418 of file server_invoice.php.

◆ updateInvoice()

updateInvoice (   $authentication,
  $invoice 
)

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

Parameters
array{login:string,password:string,entity:?int,dolibarrkey:string}$authentication Array of authentication information
array{id:string,ref:string,ref_ext:string,status?:string}$invoice Invoice
Returns
array{result:array{result_code:string,result_label:string},id?:int,ref?:string,ref_ext?:string} Array result

Definition at line 751 of file server_invoice.php.