Grab Bin Code Restock Hook (R-WHMSPG.MAC) ![]()
Requires Warehouse Manager Component
The script file must be located in your CAPITAL program directory and must have the file name R-WHMSPG.MAC.
If the script can be found, it is executed to return the stock item's Bin code when executing the Warehouse Manager Wireless Transfer Utility.
Entry Values
|
Variable |
Purpose |
|
Mode |
The snapshot operating mode. 0 = 'Top up' is being executed. 1 = 'Move' is being executed. |
|
ItemQuantity |
The suggested/required quantity to be transferred. If the quantity assigned to ItemQuantity is negative, then this is the quantity leaving the bin. If the quantity assigned to ItemQuantity is positive, this is the quantity arriving into the bin. |
|
Stock->X |
The fields of the stock table available for inspection. |
|
Staux000->X |
The fields of the stock user (auxiliary) table available for inspection. |
|
Supplier->X |
The fields of the related supplier record. |
|
Type->X |
The fields of the related stock group. |
Return Values
You must return a character value up to 20 characters wide representing the Bin code. Otherwise, Stock->Bin is returned by default.
The script in the following example replicates the standard behaviour of the transfer utility.
Example
* Grab the bin code
Return STOCK->BIN
____________________________
Related Topics:
Warehouse Manager Wireless Hooks
![]() |