Voucher Detail from Given MasterId

Discussion in 'Tally Developer' started by B Patil, Sep 20, 2018.

    
  1. B Patil

    B Patil New Member


    Say I have Voucher Master ID. And I want to print the Voucher Information (like Narration)
    in a Alter Report <XX>
    where user will Enter voucher master Id and I will show Narration in next field

    ***********************************************************
    [Report : XX]
    FORM...
    .....
    ...


    Why Would this not Work ?
    Field to Accept Id

    [Field : VI]
    Use : Name Field
    ....
    ....

    Field to Display Narration

    [Field : Vn]
    Use : Name Field
    Set as : $(Voucher,#VI).Narration

    ***********************************************************

    Even This Does not


    [Field : Vn]
    Use : Name Field
    Set as : $$MyFunction:#VId

    [Function:MyFunction]

    Parameter : pVchId : String
    OBJECT : (Voucher, ##pVchId)
    RETURNS : String

    015 : Return : $Narration
     


  2. sivam

    sivam Active Member


    Voucher ID Should be ID:xxxx
     
    vinoth likes this.


  3. B Patil

    B Patil New Member


    Thanks
    Following Worked
    Say I want to get narration of voucher from its master id i will call


    [Field : mVnarr]
    use : ..
    set as : $$getNarr:#vId
    set always : Yes


    [Function: getNarr]
    Parameter: vId: String
    Variable: vMSTID : String
    Variable: vN : String
    Return: String

    Object: Voucher: $$Sprintf:mad:@VCHMasterID:##vId

    000: Set Target
    010: Set Object
    0090 : Set: vN : $Narration
    0100 : Return: ##vN
     


Share This Page