Trial Balance

Discussion in 'Free Source Codes' started by Vijaya, May 31, 2021.

    
  1. Vijaya

    Vijaya New Member


    Dear Experts,

    Please help me how out for the below issue.

    Have added one column in Trial Balance report, But after exporting the trial balance report into excel facing some alignment issue.

    Below is the code:


    [#Form: GroupSummary]

    Local : Part : DSP AccBody : Local: Line:DSP AccLine :Local: Field: DSP AccName:Add: Field:After:DSP DispName: DSPAliasName
    Local : Part : DSP AccBody : Local: Line:DSP AccLine :Local: Field: DSPAliasName :Align:Right
    Local : Part : DSP ColTitles : Local : Line : DSP ColTitles : Delete : Line : DspDateTitle
    Local : Part : DSP ColTitles : Local : Line : DSP ColTitles : Add : Line : After :DSP CmpTitle: ParticularsLine

    Local:Line:particularsLine :Local:Field:DSPALiasTitle:Cells:1
    Local: Line:DSP AccLine :Local: Field: DSPAliasName :Cells:1
    Local : Line : DSP ColTitles :Local:Field:DSP CmpTitle:Cells:6

    Local : Field : DSP ValuationTitle: delete:Cells : @@AccCellCommonTitle
    Local : Field : DSP BreakupTitle : delete:Cells : @@AccCellCommonTitle
    Local : Field : DSP GodownTitle : delete:Cells : @@AccCellCommonTitle
    Local : Field : DSP CategoryTitle : delete:Cells : @@AccCellCommonTitle
    Local : Field : DSP BudgetTitle : delete:Cells : @@AccCellCommonTitle
    Local : Field : DSP OrderTitle : delete:Cells : @@AccCellCommonTitle
    Local : Field : DSP CurrencyTitle : delete:Cells : @@AccCellCommonTitle
    Local : Field : DSP ColTotTitle : delete:Cells : @@AccCellCommonTitle
    Local : Field : DSP Scale Factor : delete:Cells : If ##DSPColumnTotal Then ($$Numsets * @@AccCellCommonTitle) + 1 + @@AccCellCommonTitle Else ($$Numsets * @@AccCellCommonTitle) +


    Local : Field : DSP ValuationTitle: Add:Cells : 1;@@AccCellCommonTitle
    Local : Field : DSP BreakupTitle : Add:Cells : 1;@@AccCellCommonTitle
    Local : Field : DSP GodownTitle : add:Cells : 1;@@AccCellCommonTitle
    Local : Field : DSP CategoryTitle : Add:Cells : 1;@@AccCellCommonTitle
    Local : Field : DSP BudgetTitle : Add:Cells : 1;@@AccCellCommonTitle
    Local : Field : DSP OrderTitle : Add:Cells : 1;@@AccCellCommonTitle
    Local : Field : DSP CurrencyTitle : Add:Cells : 1;@@AccCellCommonTitle
    Local : Field : DSP ColTotTitle : Add:Cells : 1;@@AccCellCommonTitle
    Local : Field : DSP Scale Factor :Add: Cells : 1;If ##DSPColumnTotal Then ($$Numsets * @@AccCellCommonTitle) + 1 + @@AccCellCommonTitle Else ($$Numsets * @@AccCellCommonTitle) + 1




    [Field:DSPAliasName]

    Add:Option:DSPAliasLedger:$$IsLedger:#DSPDispName
    Add:Option:DSPAliasGroup:$$IsGroup:##DSPDispName

    [!Field:DSPAliasLedger]

    Use: Name field
    Set as: If Not $$IsLedger:#DSPDispName then "" else $(Ledger,#DSPDispName).Name[2].Name
    Space Left: 10
    Width: 15
    Align:Right

    [Field:DSPALiasTitle]

    Width : @@DSPNameWidth
    Set as : $$LocaleString:"Alias"
    Skip : Yes
    Fixed : Yes
    Style : Small Bold
    WideSpace : Yes
    Indent : if ##DSPShowMonthly then 0 else 2

    [Line: ParticularsLine]

    Use : DspDateTitle
    Add : Fields: After:DSP NameTitle:DSPALiasTitle
    Local : Field : Default : Align : Center
    Local : Field : Default : Style : Normal
    Local : Field : DSPAliasName : Set as: $$LocaleString:"Alias"


    [!Field:DSPAliasGroup]

    Use: Name field
    Set as: If Not $$IsGroup:#DSPDispName then "" else $(Group,#DSPDispName).Name[2].Name
    Space Left: 10
    Width: 15
    Align:Right

    Also,Please check the Excel i have attached.

    upload_2021-5-31_20-46-59.png
     


  2. PANKAJ BHONDLE

    PANKAJ BHONDLE Active Member


    Field level cell : 2 & 3 & 4 variable value
     


  3. Vijaya

    Vijaya New Member


    Dear Experts, Please reply.
     


  4. Vijaya

    Vijaya New Member



    I tried with multiple variables cell locally as well as field level, but none of them is working
     


  5. Samiksha

    Samiksha New Member


    [Line: DSP ColTitles]
    Lines : DSP ItemTitle, DSP CmpTitle, DSP DateTitle, DSP ValuationTitle, DSP BudgetTitle, DSP CurrencyTitle

    In all the LINES Above, add one blankfield having same width as your added field.
     


  6. Vijaya

    Vijaya New Member


    H


    Hi ,

    Already Added like that and checked,but i dont know where i gone wrong,Please help


    [#Line : DSP ItemTitle]

    Add:Field :After: DSP NameTitle:DSPALiasTitle
    Local : Field : DSP NameTitle : Inactive : Yes
    Local : Field : DSP ColTotTitle : Inactive : Yes
    Local : Field : DSP ItemTitle : Cells : 2
    Local: Field:DSPALiasTitle:Inactive:Yes

    [#Line:DSP CmpTitle]

    Add:Field :After: DSP NameTitle:DSPALiasTitle
    Local : Field : DSP NameTitle : Inactive : Yes
    Local : Field : DSP ColTotTitle : Inactive : Yes
    Local : Field : DSP ItemTitle : Cells : 1
    Local: Field:DSPALiasTitle:Inactive:Yes

    [#Line:DSP DateTitle]

    Add:Field :After: DSP NameTitle:DSPALiasTitle
    Local : Field : DSP ItemTitle : Cells : 2
    Local: Field:DSPALiasTitle:Set as:$$LocaleString:"Alias"
    Local: Field:DSPALiasTitle:Cells:1

    [#Line:DSP ValuationTitle]

    Add:Field :After: DSP NameTitle:DSPALiasTitle
    Local : Field : DSP NameTitle : Inactive : Yes
    Local : Field : DSP ColTotTitle : Inactive : Yes

    Local: Field:DSPALiasTitle:Inactive:Yes

    [#Line: DSP BudgetTitle]

    Add:Field :After: DSP NameTitle:DSPALiasTitle
    Local : Field : DSP NameTitle : Inactive : Yes
    Local : Field : DSP ColTotTitle : Inactive : Yes
    Local: Field:DSPALiasTitle:Inactive:Yes

    [#Line:DSP CurrencyTitle]

    Add:Field :After: DSP NameTitle:DSPALiasTitle
    Local : Field : DSP NameTitle : Inactive : Yes
    Local : Field : DSP ColTotTitle : Inactive : Yes
    Local: Field:DSPALiasTitle:Inactive:Yes

    upload_2021-5-31_21-56-10.png
     


  7. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Try this......... Good effort from you, but you still need to work a little more in R&D in developer. :):confused:


    Code:
    [#Line: DSP AccLine]
    Add : Field : After : DSP AccName : DSPAliasName
    
        [Field:DSPAliasName]
            Add:Option:DSPAliasLedger:$$IsLedger:#DSPDispName
            Add:Option:DSPAliasGroup:$$IsGroup:##DSPDispName
    
            [!Field:DSPAliasLedger]
                Use: Name field
                Set as: If Not $$IsLedger:#DSPDispName then "" else $(Ledger,#DSPDispName).Name[2].Name
                Space Left: 10
                Width: 15
                Align:Right
    
            [!Field:DSPAliasGroup]
                Use: Name field
                Set as: If Not $$IsGroup:#DSPDispName then "" else $(Group,#DSPDispName).Name[2].Name
                Space Left: 10
                Width: 15
                Align:Right
    
    [#Line: DSP CmpTitle]
    Add : Field : After : DSP NameTitle : DSPALiasTitle
    Local : Field : DSPALiasTitle : Set As : ""
    
    [#Line:DSP DateTitle]
    Add : Field : After : DSP NameTitle : DSPALiasTitle
    
    [#Line: DSP AmtOneTitle]
    Add : Field : After : DSP NameTitle : DSPALiasTitle
    Local : Field : DSPALiasTitle : Set As : ""
    
    [#Line: DSP AmtTwoTitle]
    Add : Field : After : DSP NameTitle : DSPALiasTitle
    Local : Field : DSPALiasTitle : Set As : ""
    
        [Field:DSPALiasTitle]
            Width : @@DSPNameWidth
            Set as : $$LocaleString:"Alias"
            Skip : Yes
            Fixed : Yes
            Style : Small Bold
            WideSpace : Yes
            Indent : if ##DSPShowMonthly then 0 else 2
    
     


  8. Amit Kamdar

    Amit Kamdar Administrator Staff Member



  9. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Samiksha has given the right solution, but you did it wrong. So hope this a good learning way. :)
     


  10. Vijaya

    Vijaya New Member


    Yes Sir, Thank You....

    My side some Issue with Default Tally....Customer side it was working perfectly.I thought problem with code. But code is fine.

    Anyway Thanks for the reply.
     


  11. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    The code is simple and not version=centric...... so it would have worked anywhere.
     


  12. Vijaya

    Vijaya New Member


    Yes....Even im not getting ,the code which you have shared is also not working at my end..Alignment is getting disturbing...Really I'm wondering.
    Problem with Excel or Tally Im not getting.
     


  13. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Check if the same field is referred in other TDLs.... or temporary disable all other TDLs
     


  14. Vijaya

    Vijaya New Member


    In my system, Default Export is also not working properly, Without any TDL alignment issue is occuring. Then how customization will work.
     


  15. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    What version you using???
    licensed or pirated?
     


  16. Vijaya

    Vijaya New Member


    Pirated and Tally Prime new 1.1.3 version
     


Share This Page