Display Multi Company in Daybook?

Discussion in 'Tally Developer' started by suresh mittal, Mar 26, 2024.

    
  1. suresh mittal

    suresh mittal New Member


    i am unable to fetch multi company data. Please provide any soluition

    Code:
    [#Line : DBTitle1]
    Add : Field : After : DSP VchAcctTitle : DBC Company
    
    [Field : DBC Company]
    Set As : "Campany name1"
    Width : 15
    Align : center
    Style : Normal Bold
    
    [#Part: SPC DBBody]
    ;Repeat  : DSP VchDetail     : Specific Vouchers of Company
    Repeat  : DSP VchDetail     : Vouchers of Multiple Companies
    
    [#Line: DSP VchDybkDetail]
    Add : Field : After : DSP VchAccount : DBC Company1
    
    
    [Field : DBC Company1]
    Use      : Name Field
    Set as     : $CompanyName;=#SVCompanyName
    Width : 15
    Align : Center
    Style : Normal
    
    ;[#Collection: Specific Vouchers of Company]
    ;    Collection     : MultiCmpDB VchCollection : Company Collection
       
    [Collection: Vouchers of Multiple Companies]
       
        Collection     : MultiCmpDB VchCollection : Company Collection
        Sort        : Default  : $Date, $LedgerName
    
    [Collection: MultiCmpDB VchCollection]
    
        Type    : Voucher
        Fetch    : Date, Vouchernumber, VoucherTypeName, Amount, MasterID, LedgerName
        Compute : Owner Company    : $$LoopCollObj:$Name
    
    [Collection: Company Collection]
    
        Type       : Company
        Fetch   : Name
     


Share This Page