actindo ->product__add_lager
actindo -> product__add_lager: add repository (stockhouse) to product
Signaturstring product__add_lager( string $sid, int $art_id, product_lager_params $params )
 
Parameter
  • string $sid
    Session identier you got from auth__login or auth__token_login
     
  • int $art_id
    product id
     
  • product_lager_params $params
    parameter array
     
Returnsstring
on success: array(ok=>TRUE, art2lager_id=>int id of product2lager), on error: array(ok=>FALSE, * errno=>int error number)
 
Descriptionadd repository (stockhouse) to product

the parameter array $params has to be used to specify repository specific attributes for product:
lager_id:int
storehouse id [get using get_all_lager()]

fach:string
storage location in storehouse

primary:int
set to 1 if repository is primary, else set to 0

keep in mind to specify every single parameter.
for parameters you don't want to use, strings should be given an empty value ('') and integers should be set to
null