_containerAdd
Allocate stock to a container
Parameters
container_id
Integer. The ID of the container to which stock is being allocated
container_type
Integer. The type of container.
Recognised types:
1 - User
2 - Vehicle
3 - Location
stock_id
Integer. The ID of the stock item being allocated
amt
Integer. The quantity of the stock item being allocated
Example
FM_api('Stock_containerAdd',
[
'container_id'=>'1234',
'container_type'=>'1',
'stock_id'=>'5',
'amt'=>'20'
]
);
Result
On Success
An empty array is returned.
On Failure
If no container_id supplied:
{"error":"You must select a container to move the stock to"}
Last updated