Free Code: Change Voucher Amount (Fixed)

Discussion in 'Free Source Codes' started by Jay kumar tailor, Jun 11, 2019.

         
  1. Jay kumar tailor

    Jay kumar tailor Active Member


    Enjoy......

    ( I Seen Many Time This Issue While Changing Salary Entries Amount)
    Works For "Entries Having Only Two Ledgers."

    like:-
    ledger1 dr 1000.00
    ledger2 cr 1000.00




    [#Form: Ledger Vouchers]

    Add: Button: InputNewVchjayamt1

    [#Form: Day Book]

    Add: Button: InputNewVchjayamt1


    [Button: InputNewVchjayamt1]

    Title: "Set Fix Vch Amt"

    Key: CTRL+F7

    Action List : InputVchjayamt1, ModifyVchjayamt 1


    [Button: InputVchjayamt1]

    Key:CTRL+F7

    Action: Alter: Rpt InputVchjayamt1


    [Button: ModifyVchjayamt1]

    Key: CTRL+F7

    Action: Call : FuncEdit4



    [Function: FuncEdit4]



    Variable : MSTID : String



    100 : WALK COLLECTION : SELjayVouchers4



    120 : SET : MSTID : "ID:"+ $$String:$MasterID



    130 : NEW OBJECT : Voucher : ##MSTID



    140 : SET TARGET : LedgerEntries[1]



    160 : SET VALUE : Amount : #NvVchjayamt



    170 : SET TARGET : ..

    172 : SET TARGET : LedgerEntries[2]



    175 : SET VALUE : Amount : #NvVchjayamt



    177 : SET TARGET : ..


    180 : SET TARGET : ..



    190 : ACCEPT ALTER


    200 : END WALK




    [Collection: SELjayVouchers4]


    Data Source : Report : Selected

    Fetch : All Ledger Entries



    [Report: Rpt InputVchjayamt1]

    Title : "Set Vch Amount"

    Form : Input Vchjayamt1

    Auto : Yes





    [Form: Input Vchjayamt1]

    Part : Input Vchjayamt1

    Width: 25% Screen

    Height: 8% Screen


    [Part: Input Vchjayamt1]

    Line: New Vchjayamt1


    [Line: New Vchjayamt1]


    Field : Long Prompt , Newvchjayamt

    Local : Field: Long Prompt : Set As: "New Vch Amount"


    [Field : Newvchjayamt]

    Use : Short Name Field

    Modifies : NvVchjayamt

    Border : Thin Box

    Width : 15



    [System : Variable]

    Nvvchjayamt : " "



    [Variable : NvVchjayamt]

    Type : Amount

    Persistent : Yes
     
    Last edited: Jun 11, 2019


  2. Bipin Damania

    Bipin Damania Member


    Superb.
    Keep Posting & Sharing...
     


Share This Page