actindo ->product__update_bestand
actindo -> product__update_bestand: update products stock
Signaturstring product__update_bestand( string $sid, int $art_id, product_book_params $book_params )
 
Parameter
  • string $sid
    Session identier you got from auth__login or auth__token_login
     
  • int $art_id
    product id
     
  • product_book_params $book_params
    book parameters
     
Returnsstring
array(ok=>TRUE/FALSE, errno=>error number in case of error)
 
Descriptionupdate products stock

The parameter $book_params has the following structure:

date:string booking date (optional)

booktype:string can be one of the following: RESERVE,BUY,SELL,INVENTORY,RETOURE,STOCKCHANGE or '' (empty string) for
MANUELLER ZU-/ABGANG

amount:double booking amount (RESERVE:+/-, BUY:+, SELL:-, INVENTORY:+/-, RETOURE:+, '':+/-)

art2lager_id:int product-to-storage id (optional, if booktype=RESERVE)

destination_art2lager_id:int product-to-storage id (mandatory if booktype=STOCKCHANGE)

text:string booking text

serialnos:array [
{
"serialno_id": int, (should be specified only if booktype=STOCKCHANGE)
"serialno": string,
"charge": string,
"made": date,
"mindesthaltbarkeit": date,
"verfall": date,
"differenzbesteuert": boolean,
"ek": float,
"commission": boolean
}, ... ]