Signatur | string product__update_bestand( string $sid, int $art_id, product_book_params $book_params ) |
Parameter |
|
Returns | string array(ok=>TRUE/FALSE, errno=>error number in case of error) |
Description | update 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 }, ... ] |