gtINStockItemText
Use this function to assign text to inventory items.
Company
Enter the code of the company that the inventory item has been created in.
StockItem
Enter the inventory item code. An inventory item with this code must already exist with the nominated company. If the item doesn't exist, an error is returned.
TextType
Enter the inventory text type. These are defined on the Text Type Maintenance form.
Text
Enter the text to update to the item.
AllowEditing
Enter True or False to indicate whether the text can be edited after it is uploaded to Greentree.
Returns
- Not Updated - when no error is encountered before update
- Updated - after running the update function
- Error message - if an error is encountered
Errors Returned
- Company is a mandatory parameter
- Stock Item is a mandatory parameter
- Stock Item must already exist (in nominated company)
- Stock item must be active
- Text Type is a mandatory parameter
- Text Type must already exist
- Text Type must be active.