Day Book with authorization

Discussion in 'Tally Developer' started by HVPatel, Nov 26, 2012.

    
  1. HVPatel

    HVPatel Active Member


    Hello Sir,
    I need to know what code for Authorisation button,
    if owner/manager check day book or own created report
    - A list of All entries, and a button to aprove selected vouchers.
    after aproved, next time report open, not show in report or day book.
    please guid.
    thanks
     
    hitarth likes this.


  2. admin

    admin Administrator Staff Member


    Do the below Steps:

    1. Add a new UDF in voucher and Make No as default/
    2. In the report add a button and update the UDF as Yes for all or selected vouchers
    ex:
    Code:
    [Button: Harsco Approve]
       
        Title        : "Approve"
        Key            : ALT+G
        Action        : Call        : Harsco Approve Voucher   
       
    [Function: Harsco Approve Voucher]
       
        Variable    : HarscoVchType        : String
        Variable    : HarscoVchNo        : String
       
        03    : WALK COLLECTION    : Harsco Source Coll 
        04    : SET TARGET   
        05    : SET VALUE        : HarscoVchAccept: "Yes"   
        08    : SET TARGET    : ..
        09    : ACCEPT ALTER
        10    : END WALK
     
    [Collection: Harsco Source Coll]
       
        Data Source    : Report    : Selected
        Fetch        : Voucher Number, Date, Party Ledger Name, Amount, IsOptional, Voucher Type Name,  HarscoVchAccept
    
    [System : UDF]
    HarscoVchAccept : Logical: 1001
    ;; Add this UDF in voucher master


    3. Next time display rpeort where this UDF is not Yes
     


  3. HVPatel

    HVPatel Active Member


    Thank u sir
    Using above, only last single voucher not updating.
    requesting, what code for immediate remove, if owner/manager click button, like [Report: Audit List]
     


Share This Page