gtINStockItemReceiptBin
A new function creates and updates the location details for picking bins on Inventory Item Bin Maintenance.
Company
The company code that the inventory item belongs to. A valid company is required.
StockItem
The inventory item code that is to be updated. A valid inventory item is required.
BinPath
The bin path that is to be set. A valid location path is required, which is set as an active bin.
Is Locked
The lock value that is to be set. Must be set to True or False
Returns
- Not Updated - if no error is encountered
- Updated - after running the Greentree Desktop update function
- Error message - if an error is encountered
Example
=gtINStockItemReceiptBin(01, 1123987134, 04.PICK.P2.L1, False,)
Errors Returned
- Must have Company identifier
- Can't find the Company (Company)
- Must have a Stock Item
- Inventory (StockItem) is not found
- Must have a Bin Path
- Bin (BinPath) is not found
- (BinPath) is not a bin
- (BinPath) is not an active bin
- Must have a Lock value of True or False
- Bin (BinPath) is a picking or a receipting bin for another inventory item, it cannot be locked
- Bin (BinPath) is already locked by inventory item (StockItem)