dolibarr  20.0.0-alpha
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=0, $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
array$productProduct
Returns
array Array result

Definition at line 505 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 838 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 925 of file server_productorservice.php.

◆ 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.

◆ 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.

◆ 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.