_addStock
Parameters
stock_id
cat_id
Example
FM_api('StockCategory_addStock', ['stock_id' => '5', 'cat_id' => '7' ])Result
On Success
{'ok':1}On failure
Last updated
Adds a Stock item to a Stock Category.
The stock item ID add to the category.
The stock category ID which the stock item will be added to..
FM_api('StockCategory_addStock', ['stock_id' => '5', 'cat_id' => '7' ]){'ok':1}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