_addStock

Adds a Stock item to a Stock Category.

Parameters

stock_id

The stock item ID add to the category.

cat_id

The stock category ID which the stock item will be added to..

Example

FM_api('StockCategory_addStock', ['stock_id' => '5', 'cat_id' => '7' ])

Result

On Success

{'ok':1}

On failure

If the cat_id is not provided in the parameters. {'error':'no cat_id'}

If the stock_id is not provided in the parameters. {'error':'no stock_id'}

If the stock category does not exist. {'error':'stock category does not exist'}

Last updated