Bayer Name to Voucher Entry screen

Discussion in 'Tally Developer' started by Akumar, May 30, 2019.

    
  1. Akumar

    Akumar New Member


    Buyer Name to Voucher Entry Screen
    How to code tdl to achieve this...
    t1.png t2.png
     
    Last edited: May 30, 2019


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    U should have TDE, if not having, please download it.

    Open Tally in Developer mode.

    Hover your mouse and click on the field (pic 1), and you will get the field name in the tooltip box.

    As per pic2, where you have marked the position, find out the field name on the left hand side.....then you need to add the field in the appropriate line.

    Do this much, rest I will guide you step by step.
     


  3. Akumar

    Akumar New Member


    Im new in TDL development. I just currently use ur already developed codes and i already installed TDE but cant understand it well
     


  4. Akumar

    Akumar New Member


    EI Buyer and EI consignee is field name
     


  5. Amitkavialb

    Amitkavialb New Member


    Sir plz WhatsApp me on 9128883335
    I want a suggestion plz guide
     
    Last edited: May 31, 2019


  6. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    So EiBuyer is the field that you want next to EiConsignee....

    Now in TDE....press Ctrl+D and search for "Field : EIBuyer", and note down the UDF Storage name

    then similarly search for EIConsignee.... and try to locate its "LINE" name.
     


  7. Akumar

    Akumar New Member


    Found UDF storage name of Field:EIBuyer is BasicBuyerName, but can't understand about LINE name...
     


  8. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Part â–º Line â–º Field.... that the structure of TDL Coding..........

    In your 2nd photo ..... Party A/c Name and its selection of ledger name... so there are 2 fields in that "line".

    So you need to find that LINE name and insert your field i.e. 3rd one there.........
     


  9. Akumar

    Akumar New Member


    Thank you, I did it...
    code works great:

    [#Line: EI Consignee]
    Field : Simple Prompt, EI Consignee,CustomerNamePrompt, CustomerName, EI CurrConsignee, EI FirstLedger, INVMailName, Name field
    RightFields : Short Prompt, EI PriceLevel, EI PrevPriceLevel

    [Field:CustomerNamePrompt]
    Use: Medium Prompt
    Set as: "Contact Person"

    [Field:CustomerName]
    Use: Name Field
    Set as:$BasicBuyerName
    Color : blue
    Set Always: Yes
    Skip: Yes

    I take this link as referance http://tallyexperttips.blogspot.com/2017/10/tally-tdl-how-to-add-custom-field-udf.html and converted as @Amit Kamdar sir suggested...
     
    Last edited: May 31, 2019
    Amit Kamdar likes this.


  10. ONKAR

    ONKAR Active Member


    @Akumar See this Screenshot or tdl , you will definitely like it

    See this Image

    BUYER NAME.JPG

    See this code here

    [#Line: EI PartyLimit]

    Add : Field : After : EI CreditLimit : Contact

    [Field : Contact]
    Invisible : NOT ##CurBalanceFlag
    Field : Simple Prompt, Name Field
    Local : Field : Simple Prompt : Info : $$LocaleString:"Customer Name:"
    Local : Field : name Field : Set as : $LedgerContact:Ledger:#EIConsignee
     


  11. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Well done.... you learnt good.......... keep on coding......:cool::cool:
     


  12. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Your is Ledger Contact Name, whereas he wanted "Basic Buyer Name"
     


  13. mukeshb

    mukeshb Member


    Dear Experts,

    In this field, How can we Select Ledger's from Ledger List.

    Thanks,
     


  14. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Use a Table.............in that field.
     


  15. Akumar

    Akumar New Member


    My code works fine in sales voucher but in purchase voucher, it shows company name in that field.
    t3.png

    Should I tried to change it like following

    ;===================================
    [#Line: EI Consignee]
    Field : Simple Prompt, EI Consignee,CustomerNamePrompt, CustomerName, SupplierNamePrompt, SupplierName, EI CurrConsignee, EI FirstLedger, INVMailName, Name field
    RightFields : Short Prompt, EI PriceLevel, EI PrevPriceLevel

    [Field:CustomerNamePrompt]
    Use: Simple Prompt
    Set as: "Customer Name"

    [Field:CustomerName]
    Use: Name Field
    Set as:$BasicBuyerName
    Color : blue
    Set Always: Yes
    Skip: Yes

    [Field:SupplierNamePrompt]
    Use: Simple Prompt
    Set as: "Supplier Name"

    [Field:SupplierName]
    Use: Name Field
    Set as:$PartyName
    Color : blue
    Set Always: Yes
    Skip: Yes
    ;===================================
    but won't work as excepted.. and it shows duplicate name in sales voucher when ledger is selected as buyer (credit sale)
    need if else statment where it detect voucher type
    @Amit Kamdar sir please help
     
    Last edited: May 31, 2019


  16. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Good...now as a learning curve...... understand that for Sale it is "EI Consignee", for purchase it is not.

    So now get the requisite field name from Purchase Voucher and make addition to your code.
     


  17. Akumar

    Akumar New Member


    I think I should use $$IsSales and $$IsPurchase
     


  18. Akumar

    Akumar New Member


    how to use $$IsSale and $$Ispurchase in above code??
     


  19. ONKAR

    ONKAR Active Member


    @Akumar your problem has solved, I also added customer mobile number,

    see here screenshot

    SCREENSHOT.JPG

    see this code here ,


    [#Line: EI PartyLimit]

    Add : Field : After : EI CreditLimit : Customer Name
    Add : Field : After : Customer Name : Customer Contact

    [Field : Customer Name]
    Invisible : NOT ##CurBalanceFlag
    Field : Simple Prompt, Name Field
    Local : Field : Simple Prompt : Info : $$LocaleString:"Customer Name:"
    Local : Field : name Field : Set as : $LedgerContact:Ledger:#EIConsignee
    Local: Field: Name Field: Width:25
    Invisible : @@IsSales

    [Field : Customer Contact]
    Invisible : NOT ##CurBalanceFlag
    Field : Simple Prompt, Name Field
    Local : Field : Simple Prompt : Info : $$LocaleString:"Contact:"
    Local : Field : name Field : Set as : $LedgerMobile:Ledger:#EIConsignee
    Local: Field: Name Field: Width:30
    Invisible : @@IsSales

    change as per your own requirement, if you want to display in sales voucher, just change in above code in red color field option

    like this Invisible : @@IsSales or
    Invisible : @@IsPurchase

    happy tally , happy tdl .
    thank you.
     


  20. Akumar

    Akumar New Member


    Tha
    Thank you...
     


  21. ONKAR

    ONKAR Active Member


    welcome, be happy, stay happy, happy tally always helps others. :):):):)
     


Share This Page