[BEAS] - Restart "Continuous number xxx" in batch number Answered
Hi everyone,
Is possible restart "Continuous number xxx" in automatic batch number assigment?
For example, I have this configuration:

I would like the continuous number xxxx to be reset every new day.
Is possible?
Thank you,
Sergio Fernández
Comments
7 comments
Hi Sergio
you can create a small script which create the barcode
one example:
http://help.beascloud.com/script/index.html?workordermanagement_getbatchnumber.htm
Here the Script:
// DistNumber = today (yyyy/mm/dd) + "-" + new counter for every day
// Example: 20200501-0001, 20200501-0002, 20200501-0003 ...
function GetBatchNumber
select coalesce(max(substring("DistNumber",10,4)),0) into myCounter from "OBTN" where left("DistNumber",9) = '<today,yyyymmdd>-'
setvar=myCounter=%numadd(myCounter,1)
setvar=myCounter=000<myCounter,#0>
setvar=e_DistNumber=<today,yyyymmdd>-<myCounter,right 4>
end function
Hi
I am very interested in this setting. Which screen should I deploy this script from?
Configuration wizard? Post in manually (single event)?
Thanks
Hi,
see this link
https://help.beascloud.com/script/index.html?userevent.htm
Thank you Martin,
It´s very helpful!
Hi Martin
My question is which function screen should I deploy on?
Very nice, congratulation Martin!
Hi WuPingHsien,
do you don't have access to the youtube video?
regards
Martin
Please sign in to leave a comment.