How to Collection of Group Please Guide?

Discussion in 'Free Source Codes' started by GOINDI1311, Jul 13, 2020.

    
  1. GOINDI1311

    GOINDI1311 Member


    Dear Sir

    I want to learn how to collect as single group with amount
    in my report.

    please help me to create a new report.....

    upload_2020-7-13_15-36-9.png


    upload_2020-7-13_15-36-25.png
     

    Attached Files:



  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    In Tally Developer....search for [#Object: Ledger] and go through all the formulas......

    You will learn lots from this. Happy hunting.
     


  3. GOINDI1311

    GOINDI1311 Member


    Respected sir my How to show report in t Formate

    and second one how i can add formula for closing stock using op+pur+direxp-sale

    [#Menu: gatewayoftally]
    Add: Key Item: PL : 5 : Display: PL

    [Report: PL]
    Form: PL
    Option: ALTER ON ENTER

    [Form: PL]
    Height: 100% page
    Width: 100% page
    Buttons : PrintButton, Change Period, ExplodeFlag,ChangeCompany
    Part: TITLE PART
    Left Part: LBODY PART
    RIGHT Part: RBODY PART

    BackGround : Light yellow
    Space Top : If $$InPrintMode Then 0.5 Else 0 inches



    [Part: TITLE PART]
    Lines: COMNAME, COMADD ,PL , PARTILINE
    Border: FULL



    [Line: COMNAME]
    Field: COMNAME
    Space Top: 0

    [Field: COMNAME]
    Set as: @@CmpMailName
    Align: Center
    Full Width: YES

    [Line: COMADD]
    Field: COMADD
    Space Top: 0

    [Field: COMADD]
    Set as: $$FullList:CompanyAddress:$Address
    Align: Center
    Full Width: YES

    [Line: PL]
    Field: MAINT
    Space Top: .5


    [Field: MAINT]
    Set as: TRADING ACCOUNT
    Align: Center
    Full Width: YES

    [Line: PARTILINE]
    Field: LEFT LINE, RIGHT LINE
    Space Top: 0

    [Field: LEFT LINE]
    Set as: "Particulars"
    Border: THIN BOX
    Alignment: Center
    Full Width: Yes

    [Field: RIGHT LINE]
    Set as: "Particulars"
    Border: THIN BOX
    Alignment: Centre
    Full Width: Yes

    ;;;;;;;;;;EXPENSE PART;;;;;;;;;;;;;;;;

    [Part: LBodypart]
    Height: 100 % PAGE
    WidtH : 50% PAGE
    Common Border: Yes

    Parts: OPSTK ,PUR, DIREXP
    Scrolled: Vertical

    ;;;;opening;;;;;;;

    [Part:OPSTK]
    Line: OPSTK


    [ Line:OPSTK]
    Field: OPSTKNAME
    Field: OPSTK AMT

    [Field: OPSTKNAME]
    Set as: "Opening Stock"

    [Field: OPSTK AMT]
    Type: Amount
    Set as: 25000


    ;;;;PURCHASE;;;;;;;

    [Part:pUR]
    Line: PUR
    Repeat: PUR :pURCOLL

    [ Line:pUR]
    Field: PurName
    Field: PurAmt

    [Field:purName]
    Type:String
    Set as: $name



    [Field:purAmt]
    Type: Amount
    Set as: $ClosingBalance
    Format : "Symbol,DrCr"

    [Collection:pURCOLL]
    Type: GROUP
    child of: $$GroupPurchase
    Belongs To: yes

    ;;;;DIRECT EXP;;;;;;;

    [Part:Direxp]
    Line: Direxp
    Repeat: Direxp :DirexpCOLL

    [ Line:Direxp]
    Field: DirexpName
    Field: DirexpAmt

    [Field:DirexpName]
    Type:String
    Set as: $name

    [Field:DirexpAmt]
    Type: Amount
    Set as: $ClosingBalance
    Format : "Symbol,DrCr"

    [Collection:DirexpCOLL]
    Type : GROUP
    child of: $$GroupDirectExpenses
    Belongs To: yes

    ;;;;;;;;;;;;INCOME PART;;;;;;;;;;

    [Part: RBodypart]
    Height: 100 % PAGE
    WidtH : 50% PAGE
    Common Border: Yes

    Parts: SALE, CLSTK
    Scrolled: Vertical

    [Part:SALE]
    Line: SALE
    Repeat: SALE :SALECOLL

    [ Line:SALE]
    Field: SALEName
    Field: SALEAmt

    [Field:SALEName]
    Type:String
    Set as: $name

    [Field:SALEAmt]
    Type: Amount
    Set as: $ClosingBalance
    Format : "Symbol,DrCr"

    [Collection:SALECOLL]
    Type : GROUP
    child of: $$GroupSales
    Belongs To: yes

    ;;;;;;CLOSING STOCK;;;;;;

    [Part:CLSTK]
    Line: CLSTK


    [ Line:CLSTK]
    Field: CLSTKNAME
    Field: CLSTKAMT

    [Field: CLSTKNAME]
    Set as: "Closing Stock"

    [Field: CLSTKAMT]
    TYPE : Amount
    SET AS: $$GroupDirectExpenses+$$GroupPurchase-$$GroupSales
    Format : "Symbol,DrCr"

    upload_2020-7-21_13-56-40.png
     

    Attached Files:



  4. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Use your FieldNames

    #Salefield - #purField - #DirExpField - #OpStkField
     


  5. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    for T-Format, do it this way.....


    [Form: PL]
    Buttons : PrintButton, Change Period, ExplodeFlag,ChangeCompany
    Part: TITLE PART, BODYPART
    BackGround : Light yellow
    Space Top : If $$InPrintMode Then 0.5 Else 0 inches

    [Part : BODYPART]
    Part: LBODY PART, RBODY PART
     


  6. GOINDI1311

    GOINDI1311 Member


    thank you very much for your support sir

    Now only 3 problems i am facing with to final the p & l

    1. Exclude the Zero balance Lines

    2. Enter in Group Pressing Enter

    3. In IndirectIncomeGroup Line showing Profit & Loss A/c

    [Part:INDIC]
    Line: INDIC
    Repeat: INDIC :INDICCOLL

    [Line:INDIC]
    Field: INDICName
    RIGHT Field: INDICAmt
    Space Top: .5

    Explode: DrillINDICItem :##ExplodeFlag OR $$KeyExplode

    [Part: DrillINDICItem]
    Line: DrillINDICItem
    Repeat: DrillINDICItem : DrillINDICcoll
    Local: Field: default :Style:Calibri Small Italic

    [Line : DrillINDICItem]
    Field: INDICName
    RightField: INDICAmt
    Indent: 2

    [Field:INDICName]
    Type:String
    Set as: $name
    Style: Calibri Default Bold

    [Field:INDICAmt]
    Type: Amount
    Set as: $ClosingBalance
    Style: Calibri Default Bold

    [Collection:DrillINDICcoll]
    Type : LEDGER
    child of: $$GroupIndirectIncomes
    Belongs To: yes

    [Collection:INDICCOLL]
    Type: ledger
    Child Of: $Name
     

    Attached Files:

    Last edited: Jul 23, 2020


  7. GOINDI1311

    GOINDI1311 Member


    RESPECTED SIR MY 3RD PROBLEM SOLVED

    1ST 2 PROBLEM AR STANDS AS IT IS
     


  8. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    You are doing great....

    I would like you to learn on your own.... your solutions are simple, but you need to understand it yourself.

    Study the Field : DSP DispName in developer to learn how to drill down.

    For removing zero value entries.... make a filter in your collection. This you can also learn by studying the many Collections in developer.

    First you try on your own. Good Luck buddy. :) :)
     


  9. GOINDI1311

    GOINDI1311 Member


    thank you sir for your support
    i will try the way that you suggested me.....

    thank you
     


Share This Page