Alter Ledger Name of selected Vouchers

Discussion in 'Tally Developer' started by Amit Sony, Jul 25, 2015.

    
  1. Amit Sony

    Amit Sony New Member


    How can we change the ledger name of the selected vouchers in DayBook.

    I've tried using this code but can't understand how to make this code to meet my requirement.

    Code:
    ;; Sri Ganeshji : Sri Balaji : Sri Pitreshwarji : Sri Durgaji : Sri Venkateshwara
    [#Form    : NRM Ledger Outstandings]
        Add    : Button    : Modify Parent
    [#Form    : DayBook]
        Add    : Button    : Modify Parent
    [#Report    : DayBook]
        Variable: SV Parent Name
    [Button    : Modify Parent]
        Key         : Alt+F4
        Title       : $$LocaleString:"Change Parent"
        Action List : Accept Parent Name,Save Parent
        Mode        : Display
        Scope       : Selected
        [Button    : Accept Parent Name]
            Key    : Alt+F4
            Action : Alter        : Accept Parent Name
            Mode   : Display
        [Key    :  Save Parent]
            Key    : Alt+F4
            Action    : Modify Object    : Narration    :  ##SVParentName
            Mode    : Display
            Scope    : Current
    [Report    : Accept Parent Name]    ;;Auto Report
        Auto        : Yes
        Title        : $$LocaleString:"Remarks"
        Form        : Accept Parent Name
    [Form    : Accept Parent Name]
        Background      : @@SV_REPSTAT
        Parts          : Accept Parent Name
        Space Bottom    : 1
        Full Width      : No
        Full Height    : No
        Horizontal Align: Centre
        Vertical Align  : Centre
        Option            : Small Size Form
        Space Top        : 1
        [Part    : Accept Parent Name]
            Line            : Accept Parent Name
            [Line    : Accept Parent Name]
                Field        : Simple Prompt
                Right Field    : Name Field
                Local        : Field : Simple Prompt        : Set as    : "Remarks :"
                Local        : Field : Name Field        : Lines        : 2
                Local        : Field : Name Field        : Max        : 600
                Local        : Field : Name Field        : SetAs        : $VoucherNumber
                Local        : Field : Name Field        : Variable    : SVParentName
                Local        : Field : Name Field        : Modifies    : SVParentName
                Local        : Field : Name Field        : Show Table: Always
                Space Top    : 1
    [Variable    : SV Parent Name]
        Type    : String
     


  2. Harry459

    Harry459 New Member


    I think you need to change the following
    Action : Modify Object : Narration : ##SVParentName

    to the field that you desire to change

    maybe the experts should be able to help on this
     


  3. Amit Sony

    Amit Sony New Member


    Yes I understood. But I don't understand what I should write instead of "Action : Modify Object : Narration : ##SVParentName" to change the ledger name instead of LedgerName. I've tried using following, but I unable to get the desired outpur.
    LedgerName, Ledger, Ledger Name, Consignee

    Dear Admin please help me to sort out this issue.
     


  4. Harry459

    Harry459 New Member


    This should change the buyer name
    Action : Modify Object : Party Name : ##SVParentName
     


Share This Page