I've seen this hook in the documentation, and i've written a script to use it
but i cannot seem to find out when it runs. I expected it to execute when you're in the warehouse manager input screens, but it doesn't seem to.
I thought that perhaps it wouldn't allow an echo so i tried to put an error in the scripting, but it didn't show that either, so, I'm under the impression the script runs somewhere else.
So basically when does this script run? I put some code below to give you an idea of what I'm trying to achieve. Also you mentioned that 7.4 allows special things with serial numbers and properties in the barcodes, how can I find out more about this?
Code: Select all
File:r-getid.mac
declare starAt type numeric
starAt := at('*',mBarCode)
mBarCode := Substr(mBarCode, 0, starAt-1)
Stock->(Find(mBarCode))
echo(stock->name)
Return StockID()