system.kanoa.inventory.getInventoryTransactionTypes(paramsDict)
Returns a list of inventory transaction types configured in the system, optionally filtered by the criteria provided in paramsDict.
Transaction types classify inventory movements (e.g. receipts, issues, adjustments) and determine whether a transaction increases or decreases on-hand quantity via the quantitySign attribute.
When no filters are supplied, all inventory transaction type records are returned.
Parameters
paramsDict Dictionary
| - inventoryTransactionTypeId | Integer | |
| - quantitySign | String | |
| - transactionTypeCode | String | |
| - transactionTypeName | String |
Returns
data pyDataset
Example
# Look up all inventory transaction types that decrease on-hand quantity (e.g. issues/consumption)
paramsDict = {'quantitySign': '-'}
data = system.kanoa.inventory.getInventoryTransactionTypes(paramsDict)
data = system.kanoa.utilities.convertDatasetToJSON(data)
for i, row in enumerate(data):
print 'Row %i'%i
for k,v in row.items():
print k,v
break #Just limiting to returning the columns from the first record for display purposes
>>>
Row 0
transactionTypeCode CYCLE_COUNT
quantitySign 0
transactionTypeName Cycle count adjustment
inventoryTransactionTypeId 8
>>>