How to Alter Voucher on Enter in MultiCompany Vouchers scenario

Discussion in 'Free Source Codes' started by kapil22, Jun 6, 2021.

    
  1. kapil22

    kapil22 Member


    Dear Experts,
    I have applied field & key to edit voucher but only open to alter only 1st companies vouchers.
    following my code:
    please what next to do.
    Regards
    Kapil

    [#Field: VID]
    Use: Name Field
    Setas: $$SPrintf:"ID:%s":$MasterID
    Invisible: Yes

    [#Key: VchAlter]
    Key: Enter
    Action: Call : AltVoucher:#VID
    Scope: Current
     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    You do not need to do the above.......

    In LINE level..... Line of your DATA.........
    Option : Alter On Enter : $$IsVoucher AND NOT $IsDeleted
    --- add this line.
     


  3. kapil22

    kapil22 Member


    your code is right but not work in my codes
    is there other options?
     


  4. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Have you made GROUP company or just opening multiple companies??
     


  5. kapil22

    kapil22 Member


    just opening multiple companies
     


  6. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Try making a group company and see........
     


  7. kapil22

    kapil22 Member


    Not work
     


Share This Page