https://help.tallysolutions.com/docs/td9rel54/tdl_reference/appendix.htm

Appendix

Objects can be composed of methods and collection. The collection can be made up of objects which is again a combination of methods and collection and so on. This chain can go up to any number of levels. The following diagram represents the structure of an object in general.

Figure_1_Object_Structure.jpg

The detailed structure of the masters Company, Ledger, Group, Stock Item and transaction object Voucher is described in this section.

Company

Company objects contains various methods and collections. Some of the collections further contains sub -collections. Figure 2 shows the complete structure of Company objects. The availability of methods and collection depends on the features that are activated while creating the company or through F11 Features and F12 configuration settings.

Figure_2_Structure_of_Company_Object.jpg

The company object contains methods and collections at first level. Methods $Name, $Books - From, $ExciseRange etc are available at Level 1. Some of the collections further contain sub-collection which in-turn contains a sub collection. For Example, the collection AutoCostList contains a sub-collection Category Allocations at Level 2. Category allocations again contain sub-collection Cost Centre allocations at Level 3.

Some methods and collections of Company Object:

Name

Type

Description

Name

Method

To fetch the name of Company

Address

Collection

Address o f the Comp a ny

S t ate Name

Method

To fetch the st a te name

Pincode

Method

To fetch the Pincode

Email

Method

To fetch the Email id

V A TTINNumber

Method

To fetch the V A T No de t ails

Address Coll e ction

Name

Type

Description

Address

Method

To fetch the name of Company

Group

Group object contain methods $Name, $Parent, $IsBillWiseOn, $IsDeemedPositive, $OverdueBills etc. and one sub-collection Language Name.

Figure_3_Group_Object.jpg

Some methods and collections of Group Object:

Name

Type

Description

Language Name

Collecti o n

Group Name in various langua g es

Parent

Method

Parent of curre n t group name

OpeningBalance

Method

Opening Balance

ClosingBalance

Method

Closing Balance

Debit T otals

Method

D e bitTo t als

Credit T otals

Method

Credit T otals

Language Name Coll e ction

Name

Type

Description

Name

Method

Ledger Name in selected language

Language

Method

Language Name

LanguageId

Method

Language ID

Ledger

Ledger objects contains methods $Name, $Parent, $LedgerPhone etc. and collections Address, Bill allocations etc at Level 1. The features activated through F11 features and F12 configuration settings effectively decides the availability of methods and collection for Ledger Object.

The complete hierarchy of Ledger object is as shown in the following figure.

Figure_4_Ledger_Object.jpg

The collecti o n Bill Allocations won't be available if the option "Main t ain Bill-Wise Details" is s et to NO in F 1 1 Acc o unting fea t ures.

Some me t hods and collections of Ledger object:

Name

Type

Description

Name

Method

Ledger name

Parent

Method

Parent group of ledg e r

Address

Coll e ction

A d dress of the p arty

Mailing Name

Method

Ledger Mailing Name

Ledger Phone

Method

Phone numb e r

Ledger Con t act

Method

C o nt a ct p e rson name

IsBillwiseOn

Method

Checks wh e ther B illwise De t ails are required for t he s p ecified Ledger.

Ledge r .

Bill Allocati o ns

Collecti o n

Opening Bill D e tails

Bill Allocations Coll e ction

Name

Type

Description

BillDate

Method

Bill date

Name

Method

Bill name

OpeningBalance

Method

Opening balance of the bill

Stock Group

The Gro u p O b ject co n tains many m e thods namely $Parent , $BaseU n its etc. and one sub - collection Language Name.

appendix00019.png

Some me t hods and collections of Stock Group Object:

Name

Type

Description

Name

Method

Name of Stock Group

Parent

Method

Name of Parent

Openi n g Bala n ce

Method

Opening b a lance

Closing Bala n ce

Method

Closing b a lance

Stock Item

The methods $Name, $BaseUnits, $Description etc. and collections Language Name, Batch Allocations and Component List etc. belongs to the object stock Item. The features activated through F11 features and F12 configuration settings effectively decides the availability of methods and collection for Stock Item Object.

The complete hierarchy of Stock Item object is as shown in the following figure 6:

Figure_6__Stock_Item_object.jpg

The collections Component List, Sales List, Purchase List and Full Price List further contain a sub-collection. Some methods and collections of Stock Item object:

Name

Type

Description

Name

Method

Name of the S tock Item

Parent

Method

Parent name of the Stock Item

Category Alloca­tio n s

Collection

Stock Item Categ o ry name

BaseUnits

Method

Stock Item Primary uni t s

Description

Method

Description of St o ck item

OpeningBalance

Method

Opening Balance in Quantity

Closi n gBalance

Method

Closing B a lance in Quantity

BatchAllocations

Collection

Opening Batch De t ails

BatchAllocations Coll e ction

Name

Type

Description

BatchName

Method

To fetch the name of batch

GodownN a me

Method

Godown name

OpeningBalance

Method

Opening balance

ExpiryPeriod

Method

Expiry period

Note: For the details of Cate g ory Allocatio n s coll e ction please refer V oucher object.

Voucher

Voucher object is the most complex object in TDL. There are so many methods and collections at Level 1 and most of the collections further have methods and sub-collection. The availability of methods and collection is based on the features activated through F11 features and F12 configuration settings.

The following figure shows the complete hierarchy of the Voucher object:

figure_7_Voucher_Object.jpg

The collection Ledger Entries, Inventory Entries, All Ledger Entries and All Inventory Entries Collections are widely used in the reports and for invoice customisation.

Some methods and collections of Voucher object:

Name

Type

Description

Date

Method

Voucher Date

Vo u cherNumber

Method

Voucher number

Vo u cherTyp e Name

Method

Name of the V ouch e r T ype

PartyLe d gerName

Method

Party N a me in vouch e r

Narration

Method

Narration of the vouch e r

LedgerEntries

Collection

Ledgers involv e d in the transaction

Inven t oryEntries

Collection

Inventory de t ails

LedgerEntries Coll e ction

Name

Type

Description

LedgerName

Method

Ledger

Amount

Method

Amount

BillAl l ocations

Collect i on

Bill De t ails

CategoryAlloca­tio n s

Collection

Category Details

Note : For the details of Bill Alloc a tions de t ails please refer Ledger object

InventoryEntries Collection

Name

Type

Description

StockIt e mName

Method

Name of the S tock Item sold to the p arty

BilledQty

Method

Quanti t y of the item sold to the p arty

Rate

Method

Rate of the S tock Item

Amount

Method

Amount

Batch Alloc a tions

Collection

Batch de t ails

UserDescription

Method

Description e n tered

Note : For the details of Batch Allocations collection please refer Stock Item object.

CategoryAllocations Collection

Name

Type

Description

Category

Meth o d

Cat e gory Name

CostCentreAll o cations

Collection

Cost Centre Details

CostCenterAllocations Coll e ction

Name

Type

Description

Name

Method

Name of the Cost centre

Amount

Method

Amount