system.kanoa.inventory.addInventoryLocation(inventoryLocationInfo, userId)
Adds a new inventory location record.
Parameters
inventoryLocationInfo Dictionary
| - assetId | Integer | |
| - isActive | Boolean | |
| - locationCode | String | |
| - locationName | String | |
| - locationType | String |
userId Integer:Id of the user executing the function
Returns
inventorylocationId Integer
message String None if success
Example
# Create a storeroom location
locationId, msg = system.kanoa.inventory.addInventoryLocation({
'assetId': 45,
'locationName': 'Parts Room',
'locationCode': 'PR',
'locationType': 'Storeroom',
'isActive': True,
}, userId)