Saltar al contenido principal

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

Respondida

Comentarios

7 comentarios

  • Comentario oficial
    Martin Heigl

    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

  • 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

  • Martin Heigl

    Hi,

    see this link

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

     

  • Sergio Fernandez

    Thank you Martin,

    It´s very helpful!

  • WuPingHsien

    Hi Martin

    My question is which function screen should I deploy on?

  • Karlo Mesquita Rodrigues

    Very nice, congratulation Martin!

  • Martin Heigl

    Hi WuPingHsien,

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

     

    regards

    Martin

Iniciar sesión para dejar un comentario.