system.kanoa.inventory.addInventoryTransactionType(inventoryTransactionTypeInfo, userId)
Adds a new inventory transaction type record, defining a classification of inventory movement (e.g. Receipt, Issue, Transfer, Adjustment, Cycle Count)
that can be referenced by inventoryTransactionTypeId when creating inventory transactions.
The quantitySign field controls whether transactions of this type increase or decrease the inventory balance.
Parameters
inventoryTransactionTypeInfo Dictionary
| - quantitySign | String | |
| - transactionTypeCode | String | |
| - transactionTypeName | String |
userId Integer:Id of the user executing the function
Returns
inventorytransactionTypeId Integer
message String None if success
Example
inventoryTransactionTypeInfo = {
'transactionTypeCode': 'RCPT',
'transactionTypeName': 'Receipt',
'quantitySign': '+'
}
userId = system.kanoa.security.getIDPUserId({'userName': 'SYSTEM'})
inventoryTransactionTypeId, message = system.kanoa.inventory.addInventoryTransactionType(inventoryTransactionTypeInfo, userId)
print inventoryTransactionTypeId, message