[BEAS] - Restart "Continuous number xxx" in batch number Respondida

Sergio Fernandez

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

Comentarios

7 comentarios

  • Comment author
    Martin Heigl
    • Comentario oficial

    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

  • Comment author
    WuPingHsien

    Hi

    I am very interested in this setting. Which screen should I deploy this script from?
    Configuration wizard? Post in manually (single event)?

    Thanks

    0
  • Comment author
    Martin Heigl

    Hi,

    see this link

    https://help.beascloud.com/script/index.html?userevent.htm

     

    1
  • Comment author
    Sergio Fernandez

    Thank you Martin,

    It´s very helpful!

    0
  • Comment author
    WuPingHsien

    Hi Martin

    My question is which function screen should I deploy on?

    0
  • Comment author
    Karlo Mesquita Rodrigues

    Very nice, congratulation Martin!

    0
  • Comment author
    Martin Heigl

    Hi WuPingHsien,

    do you don't have access to the youtube video?

     

    regards

    Martin

    0

Iniciar sesión para dejar un comentario.