Block reopen work orders to certain users Answered

Yesid Lopez

Good day

We require blocking the possibility of reopening work orders to specific users, in what way can I do it, Or enter parts of work or time to orders already closed.

Comments

6 comments

  • Comment author
    Andreas von Arx
    • Edited

    Hi Yesid

    It would be quite simple to do through BEAS Script for the opening of orders only for particular users. But I would not recommend changing a logic to allow posting to closed orders.

    Just check for the windowevent reopenworkorder (if you are on the workorderscreen)

    Kind regards
    Andreas

    0
  • Comment author
    Yesid Lopez

    Good Morning

    How can I make this lock, reopen orders, enter workpieces? The objective is that to orders already closed nothing is entered.

    Kind regards

     

    0
  • Comment author
    Martin Heigl

    Hi, 

    sorry - long time ago

    Reopen is only possible in the work order position edit window

    Here you can insert follow customisation (Crtn+N+U)

     

    global function dw_master_item_button_open_click
    // in this example only user manager can reopen the work order
    if <system.user> <> "manager" then
      messagebox=not allowed to reopen work order
      return -1
    end if
    end global

     

    0
  • Comment author
    WuPingHsien

    Hi

    I tested this script
    It is found that although the warning pops up, the work order can still be opened...

    0
  • Comment author
    Martin Heigl

    on my side it's working fine. Can you insert the debug log ?

    0
  • Comment author
    WuPingHsien

    HI

    http://www.beascloud.com/docs/beasscreen/20220726_064911_ZGVidWcuaHRtbA==.html

    0

Please sign in to leave a comment.