Signatur | string product__add_lager( string $sid, int $art_id, product_lager_params $params ) |
Parameter |
|
Returns | string on success: array(ok=>TRUE, art2lager_id=>int id of product2lager), on error: array(ok=>FALSE, * errno=>int error number) |
Description | add 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 |