Adding Column in Ledger Voucher

Discussion in 'Tally Developer' started by Himanshu-2002, Oct 17, 2020.

    
  1. NSA

    NSA Member


    Sir, I think you have misunderstood me. I was asking what is that line represent. I don't know it. That is why I have asked to you
     


  2. NSA

    NSA Member


    This is the screen shot of data I am entering.
     

    Attached Files:

    • Doc1.pdf
      File size:
      247.8 KB
      Views:
      19


  3. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    My friend, have not misunderstood you..............

    You asked about line.....I explained it is objectification........so from data entry screen you can have the UDF available for other Reports.

    Then in next line, you ASKED about putting it in a string..........and for this I have replied to you.
     


  4. NSA

    NSA Member


    Si
    Sir,

    You mean to say that, I have to add that particular line in the Report where I have made TDL for data Entry?
     


  5. NSA

    NSA Member


    [#Line: DSP VchAccTitles]
    Add : Fields : AFter : DSP VchAcctTitle : Deliveredby

    [Field: Deliveredby]
    Use: name field
    Set as: "Delivered By"
    Skip: Yes
    Align: Right
    Style: Normal Bold
    Width:20
    Invisible : NOT ##IsLedgerReport

    [#Line: DSP VchDetail]

    Add : Right Fields : Before : DSP VchType : DeliveredbyBody
    [#Object : Ledger]
    DriverName : $DriverName

    [Field: DeliveredbyBody]
    Use: name field
    Set as: $DriverName
    Skip: Yes
    Align: Right
    Style: Normal Bold
    Width:20
    Invisible : NOT ##IsLedgerReport


    Now the tally showing - "Not Responding"
     


  6. Himanshu-2002

    Himanshu-2002 Active Member


    Not Responding Issue Solved But Probably You are using sub Collection to Store Values So, I don't think will work....It requires a big post explaining concept of sub Collection, Collection and Objects that is not possible for me currently So, I will prefer you to study below things

    1. Aggregate UDF
    2. Sub Collection
    3. Object

    [#Line: DSP VchAccTitles]
    Add : Fields : AFter : DSP VchAcctTitle : Deliveredby

    [Field: Deliveredby]
    Use: name field
    Set as: "Delivered By"
    Skip: Yes
    Align: Right
    Style: Normal Bold
    Width:20
    Invisible : NOT ##IsLedgerReport

    [#Line: DSP VchDetail]

    Add : Right Fields : Before : DSP VchType : DeliveredbyBody
    [#Object : Ledger]
    MyDriverName : $DriverName

    [Field: DeliveredbyBody]
    Use: name field
    Set as: $MyDriverName
    Skip: Yes
    Align: Right
    Style: Normal Bold
    Width:20
    Invisible : NOT ##IsLedgerReport
     
    Muhammadhaneef likes this.


  7. NSA

    NSA Member


    Dear Friend,

    I am not a developer, I don't know this TDL Coding. I was trying to assemble the various codes from different forums and was making a custom development of TDL. Here I am providing my assembled TDL.
     

    Attached Files:



  8. sivam

    sivam Active Member


    Try This Way

    [#Line: DSP VchAccTitles]
    Option:Example:##IsLedgerReport
     


  9. NSA

    NSA Member



    [#Line: DSP VchAccTitles]
    Add :Right Fields : Before : DSP VchTypeTitle : RCPLedLocationTitle, RCPLedDriverTitle, RCPLedTruckNoTitle

    [Field: RCPLedLocationTitle]
    Use: Short Name Field
    Set as: "Location"
    Skip: Yes
    Align: Right
    Style: Normal Bold
    Width:20

    [Field: RCPLedDriverTitle]
    Use: Short Name Field
    Set as: "Driver Name"
    Skip: Yes
    Align: Right
    Style: Normal Bold
    Width:20


    [Field: RCPLedTruckNoTitle]
    Use: Short Name Field
    Set as: "Truck No"
    Skip: Yes
    Align: Right
    Style: Normal Bold
    Width:20

    [#Line: DSP VchDetail]
    Add : Right Fields : Before : DSP VchType : RCPLedLocation, RCPLedDriver, RCPLedTruckNo

    [Field: RCPLedLocation]
    Use: Short Name Field
    Set as: $BASICFINALDESTINATION
    Skip: Yes
    Align: Right
    Style: Normal Bold
    Width:20


    [Field: RCPLedDriver]
    Use: Short Name Field
    Set as: $EICHECKPOST
    Skip: Yes
    Align: Right
    Style: Normal Bold
    Width:20


    [Field: RCPLedTruckNo]
    Use: Short Name Field
    Set as: $BASICSHIPVESSELNO
    Skip: Yes
    Align: Right
    Style: Normal Bold
    Width:20

    [#Collection: Vouchers of Ledger]
    fetch: EICHECKPOST, BASICFINALDESTINATION, BASICSHIPVESSELNO, brokerto


    Sir,

    I was trying to add some custom field in the ledger report. With the above code, I can get the desired report from now onwards. However, I was using a different STORAGE before. So I thought I could set a conditional field value by modifying the field as below:

    [Field: RCPLedLocation]
    Use: Short Name Field
    Set as: If NOT $$IsEmpty: $brokerto Then $BASICFINALDESTINATION Else $brokerto
    Skip: Yes
    Align: Right
    Style: Normal Bold
    Width:20

    But I think, I am missing some serious thing in the above formula. can anyone please guide me in this regard?
     


  10. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    You are not missing anything.

    You have ADDED a space between IsEmpty and Brokerto
     


  11. NSA

    NSA Member


    Th
    Thank You So much Sir..........................................

    Once again thanking you the entire group admin for opening such a wonderful group for sharing knowledge..
     


Share This Page