NEED VOUCHER CLASS SET IN LEGDER MASTER

Discussion in 'Tally Developer' started by ldharjani, Apr 27, 2019.

    
  1. ldharjani

    ldharjani New Member


    DEAR ALL

    WE SET VOUCHER CLASS IN SALES VOUCHER AND I WANT TO SHOW SAVE CLASSES IN LEDGER MASTER AND SAVE PARTICLE CLASS IN DEFENDED LEDGER .

    PL GUIDE US..

    THANKS
     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Please explain clearly.... "SAVE PARTICLE CLASS IN DEFENDED LEDGER ."

    Do you mean -- "Particle = Particular" and "defended = dependent" ???

    And Please do not use ALL CAPS..........
     


  3. ldharjani

    ldharjani New Member


    Ok Sir Thanks For This

    but give me solution.

    i already created code but i want to default Class taken to select ledger in sales invoice.


    [#Part: MST LED Explode Sundry]
    Add : Lines : LEDCLASS
    [Line: LEDCLASS]
    Fields : Medium Prompt,LEDCLASS
    Local: Field: Medium Prompt : Set as : "LEDCLASS"
    Invisible: not ($$IsBelongsTo:$$GroupSundryDebtors Or $$IsBelongsTo:$$GroupSundryCreditors)

    [Field: LEDCLASS]
    Use: Name Field
    Set as: $ClassName
    Table : Class Table Sales
     


  4. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Just as u have made this code...where is your code for Invoice entry???

    Above code seems right........is there any problems??
     


  5. ldharjani

    ldharjani New Member


    sir we use multiple class in sales voucher and i want to predefined ledger wise class

    when select party name in sales voucher auto taken predefined class in ledger master
     

    Attached Files:



  6. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    I understood....now u understand what i am asking...where is your code for sales Invoice?? Make a code, and we can help you along, if any problems.

    Or are you expecting others to make the code for you?
     


  7. ldharjani

    ldharjani New Member


    sir i want to use invoice tally default code

    voucher class not save in predefined ledger ..
    if you want help us in this subject.
    thank u
     


  8. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    In your CLASS field....

    put ... Storage : LedClassName

    then specify the UDF parameters........


    then ....
    [#Object : Ledger]
    LedClassName : $LedClassName

    Now this will be saved.......and will be available for use in the invoice entry code............
     



  9. as i understand you have to save your ledgers under groups,
    and in voucher class you have "exclude or include " these ddddd.png
     



  10. and if you want something else then amit ji ne apki proble solve kar di hai
     


  11. ldharjani

    ldharjani New Member



    Thank u sir for reply

    but not clear if dont mind pl update my code

    Thanks again.


    [#Part: MST LED Explode Sundry]
    Add : Lines : LEDCLASS
    [Line: LEDCLASS]
    Fields : Medium Prompt,LEDCLASS
    Local: Field: Medium Prompt : Set as : "LEDCLASS"
    Invisible: not ($$IsBelongsTo:$$GroupSundryDebtors Or $$IsBelongsTo:$$GroupSundryCreditors)

    [Field: LEDCLASS]
    Use: Name Field
    Set as: $ClassName
    Table : Class Table Sales
     


  12. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    [#Part: MST LED Explode Sundry]
    Add : Lines : LEDCLASS
    [Line: LEDCLASS]
    Fields : Medium Prompt,LEDCLASS
    Local: Field: Medium Prompt : Set as : "LEDCLASS"
    Invisible: not ($$IsBelongsTo:$$GroupSundryDebtors Or $$IsBelongsTo:$$GroupSundryCreditors)

    [Field: LEDCLASS]
    Use: Name Field
    Set as: $ClassName
    Table : Class Table Sales
    Storage : LedClassName

    [System : UDF]
    LedClassName : String : 12123

    [#Object : Ledger]
    LedClassName : $LedClassName
     


  13. ldharjani

    ldharjani New Member


    thank you sir for quick reply

    but Error showing "Field:LedClass Incorrect STOREGE! after ledger atler or create mode.
     


  14. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    [#Object : Ledger]
    myLedClassName : $LedClassName
     


  15. ldharjani

    ldharjani New Member


    Thanks For Reply But Same ERROR Showing After Change Object
     


  16. ldharjani

    ldharjani New Member


    My Main Need Is Auto taken Class In Sales Create Mode by defined Class In Master

    "In This Code Not Come Error But Not Working In Sale Create Mode "

    [#Part: MST LED Explode Sundry]
    Add : Lines : LEDCLASS
    [Line: LEDCLASS]
    Fields : Medium Prompt,LEDCLASS
    Local: Field: Medium Prompt : Set as : "LEDCLASS"
    Invisible: not ($$IsBelongsTo:$$GroupSundryDebtors Or $$IsBelongsTo:$$GroupSundryCreditors)

    [Field: LEDCLASS]
    Use: Name Field
    Set as: $LedClassName
    Table : Class Table Sales
    Storage : LedClassName

    [System : UDF]
    LedClassName : String : 12123

    [#Object : Ledger]
    myLedClassName : $LedClassName
     


  17. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    exit tally and try again.............
     


  18. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    How are you expecting it to work..... when there is no CODE existing to carry forward the Ledger Master values to the Sales Invoice.

    You need to write your code for that to happen.
     


  19. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    you need to alter the Voucher class field in Sales Voucher.............
     


  20. ldharjani

    ldharjani New Member


    Yes sir,

    i create two different class in sales voucher and this class set in ledger master different ledger different voucher class and finely invoice create (billing) time auto pickup predefined class save put ledger name.

    attach image1,2,3

    So pl right guide as per need...

    thanks again.
     

    Attached Files:



  21. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    I have understood....now you need to understand what I am saying..... and am repeating it again.....

    Just like you wrote a code in Ledger Master to select CLASS ..... same way you need to alter codes for SALES VOUCHER......so as...when you select the ledger name the Voucher class gets updated with the ClassName as specified in the master.

    So you need to write a code for this also.................It is not going to change on its own. You need to alter the Field : VCH VoucherClass Main
     


  22. Murali.R

    Murali.R Member


    ldharjani Try This Modified code Enjoy.....


    [#Part: MST LED Explode Sundry]
    Add : Lines : LEDCLASS
    [Line: LEDCLASS]
    Fields : Medium Prompt,LEDCLASS
    Local: Field: Medium Prompt : Set as : "LEDCLASS"
    Invisible: not ($$IsBelongsTo:$$GroupSundryDebtors Or $$IsBelongsTo:$$GroupSundryCreditors)
    [Field: LEDCLASS]
    Use : Name Field
    Set as: $ClassName
    Table : Class Table Sales
    Storage : MRILedClassName
    [System : UDF]
    MRILedClassName: String : 12123
    [#Field: VCH VoucherClass Main]
    Set as : If ($$IsSysNameEqual:DefaultVoucherClass:##SVClass) Then $$SysName:NotApplicable Else +
    If NOt $$IsEmpty:($MRILedClassName:Ledger:#EIConsignee) then ($MRILedClassName:Ledger:#EIConsignee) Else ##SVClass


    Happy coding
     


  23. ldharjani

    ldharjani New Member




    thank you sir for complete code but our target is not salve

    we use two class in sales invoice
    1. GST -means inclusive GST
    2. new - means add GST

    your tdl change class name only .

    see image ......
     

    Attached Files:



  24. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    The report needs to be refreshed after the CLASSNAME change.......

    In the Voucher Entry screen, the CLASS comes first, then a couple of details and THEN comes the LedgerName selection. So as per the code and as per selection of class in the LedgerMaster, the class name gets changed.....but the report is not being refreshed.
     


  25. ldharjani

    ldharjani New Member


    i ok sir this report success to be refreshed after the CLASSNAME change....... but not change setting under class
    i want to complete change setting under class.
     


Share This Page