dolibarr 20.0.0
server_productorservice.php File Reference

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

Go to the source code of this file.

Functions

 getProductOrService ($authentication, $id=0, $ref='', $ref_ext='', $lang='')
 Get produt or service.
 
 createProductOrService ($authentication, $product)
 Create an invoice.
 
 updateProductOrService ($authentication, $product)
 Update a product or service.
 
 deleteProductOrService ($authentication, $listofidstring)
 Delete a product or service.
 
 getListOfProductsOrServices ($authentication, $filterproduct)
 getListOfProductsOrServices
 
 getProductsForCategory ($authentication, $id, $lang='')
 Get list of products for a category.
 

Detailed Description

File that is entry point to call Dolibarr WebServices.

Definition in file server_productorservice.php.

Function Documentation

◆ createProductOrService()

createProductOrService ( $authentication,
$product )

Create an invoice.

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

Definition at line 505 of file server_productorservice.php.

References check_authentication(), dol_now(), dol_syslog(), and getCountry().

◆ deleteProductOrService()

deleteProductOrService ( $authentication,
$listofidstring )

Delete a product or service.

Parameters
array$authenticationArray of authentication information
string$listofidstringList of id with comma
Returns
array Array result

Definition at line 838 of file server_productorservice.php.

References check_authentication(), and dol_syslog().

◆ getListOfProductsOrServices()

getListOfProductsOrServices ( $authentication,
$filterproduct )

getListOfProductsOrServices

Parameters
array$authenticationArray of authentication information
array$filterproductFilter fields
Returns
array Array result

Definition at line 925 of file server_productorservice.php.

References check_authentication(), and dol_syslog().

◆ getProductOrService()

getProductOrService ( $authentication,
$id = 0,
$ref = '',
$ref_ext = '',
$lang = '' )

Get produt or service.

Parameters
array$authenticationArray of authentication information
int$idId of object
string$refRef of object
string$ref_extRef external of object
string$langLang to force
Returns
mixed

French VAT NPR

Spanish local taxes

Definition at line 365 of file server_productorservice.php.

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

◆ getProductsForCategory()

getProductsForCategory ( $authentication,
$id,
$lang = '' )

Get list of products for a category.

Parameters
array$authenticationArray of authentication information
int$idCategory id
string$langForce lang
Returns
array Array result

Definition at line 1000 of file server_productorservice.php.

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

◆ updateProductOrService()

updateProductOrService ( $authentication,
$product )

Update a product or service.

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

Definition at line 671 of file server_productorservice.php.

References check_authentication(), dol_now(), dol_syslog(), and getCountry().