dolibarr  19.0.0-dev
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()

createProductOrService (   $authentication,
  $product 
)

Create an invoice.

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

Definition at line 502 of file server_productorservice.php.

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

◆ getListOfProductsOrServices()

getListOfProductsOrServices (   $authentication,
  $filterproduct 
)

getListOfProductsOrServices

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

Definition at line 912 of file server_productorservice.php.

◆ getProductOrService()

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

◆ getProductsForCategory()

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

Get list of products for a category.

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

Definition at line 987 of file server_productorservice.php.

◆ updateProductOrService()

updateProductOrService (   $authentication,
  $product 
)

Update a product or service.

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

Definition at line 664 of file server_productorservice.php.