dolibarr  16.0.1
Functions
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= '', $ref= '', $ref_ext= '', $lang= '')
 Get produt or service. More...
 
 createProductOrService ($authentication, $product)
 Create an invoice. More...
 
 updateProductOrService ($authentication, $product)
 Update a product or service. More...
 
 deleteProductOrService ($authentication, $listofidstring)
 Delete a product or service. More...
 
 getListOfProductsOrServices ($authentication, $filterproduct)
 getListOfProductsOrServices More...
 
 getProductsForCategory ($authentication, $id, $lang= '')
 Get list of products for a category. More...
 

Detailed Description

File that is entry point to call Dolibarr WebServices.

Definition in file server_productorservice.php.

Function Documentation

createProductOrService (   $authentication,
  $product 
)

Create an invoice.

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

Definition at line 484 of file server_productorservice.php.

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

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 809 of file server_productorservice.php.

References check_authentication(), and dol_syslog().

getListOfProductsOrServices (   $authentication,
  $filterproduct 
)

getListOfProductsOrServices

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

Definition at line 894 of file server_productorservice.php.

References $resql, check_authentication(), and dol_syslog().

getProductOrService (   $authentication,
  $id = '',
  $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 347 of file server_productorservice.php.

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

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

Get list of products for a category.

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

Definition at line 969 of file server_productorservice.php.

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

updateProductOrService (   $authentication,
  $product 
)

Update a product or service.

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

Definition at line 646 of file server_productorservice.php.

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