Get
Barcode Script (R-GETBAR.MAC)
The script file must be located in your CAPITAL program directory and must have the file name R-GETBAR.MAC.
This hook script can be used to tell the Warehouse Manager what the bar code of a stock item is. The stock item's Stock ID is submitted to the script (this is a unique 7 digit code automatically assigned to every product in the CAPITAL Stock Control system). The script then returns the item's bar/scan code.
Entry Values
|
Variable |
Purpose |
|
Stock->X |
You may query the contents of the fields of the stock record. |
|
Staux000->X |
You may query the contents of any user fields if applicable. |
|
mStockID |
The unique 7 digit Stock ID of the stock item. |
Return Values
The script must return the bar/scan code of the stock item. Return an empty string ("") if the item does not have a bar/scan code. This will cause a "not found" warning message to be displayed in the Warehouse Manager.
Example
* Return the field that contains the stock item's
* bar code used for scanning
Return STAux000->Barcode
____________________________
Related Topics:
Warehouse Manager Data Collection Scripts
![]() |