What Is TDL and How to Use It to Customise Tally Prime Software?
Introduction
Every business has different accounting requirements. While standard accounting software provides features for managing sales, purchases, inventory, taxation, banking and financial reporting, many organisations require additional functionalities that match their specific business processes.
For example, a manufacturing company may require customised production reports, a distributor may need a special outstanding payment report, and a retail business may want additional information printed on every sales invoice.
This is where TDL becomes important.
TDL, which stands for Tally Definition Language, is the development language used to customise and extend the capabilities of Tally Prime. It allows developers to create customised reports, modify supported screens, automate business processes, add validations and integrate Tally Prime with external applications.
Using TDL, businesses can adapt Tally Prime to their operational requirements instead of changing their existing accounting processes to fit standard software functionality.
In this guide, we explain what TDL is, how it works, how to use TDL files in Tally Prime and what types of customisations businesses can implement.
1. What Is TDL in Tally Prime?
TDL stands for Tally Definition Language.
It is the native development language of Tally Prime, designed to extend the standard functionality of the application.
TDL allows developers to create additional features and modify supported application interfaces.
It is useful for businesses that need specialised accounting functionality beyond the standard features available in Tally Prime.
Some common applications of TDL include:
Customised sales invoices.
Special purchase invoice formats.
Additional voucher fields.
Customised accounting reports.
Outstanding payment reports.
Customer-wise sales analysis.
Stock movement reports.
Automated calculations.
Data validation.
Additional menu options.
Special printing formats.
Business-specific dashboards.
Integration with external applications.
TDL is based on definitions and supports reusable components, making it possible to develop both simple and advanced customisations.
2. Why Do Businesses Need TDL Customisation?
Standard accounting software cannot always accommodate every business requirement.
Different industries follow different workflows, reporting formats and operational procedures.
For example, a construction company may need project-wise expense reports, while a pharmaceutical distributor may require additional batch and expiry-related information.
Similarly, an exporter may need customised foreign currency invoices and a manufacturing company may require production-related reports.
TDL helps bridge these functional gaps.
The main advantages include:
Business-specific functionality: Additional features can be developed according to the company's requirements.
Improved reporting: Custom reports can display information that may not be conveniently available in standard reports.
Reduced manual work: Supported repetitive processes can be automated.
Customised invoices: Businesses can modify supported invoice layouts and include additional information.
Better data visibility: Important business information can be displayed within Tally Prime.
Integration: TDL can support data exchange and integration with external applications through appropriate methods.
3. What Can Be Customised Using TDL?
TDL offers a broad range of customisation possibilities.
Here are some important examples.
A. Sales Invoice Customisation
Businesses often require invoices that contain more information than a standard invoice format.
Using TDL, developers can customise supported invoice layouts to include:
Company logo.
Additional company information.
Customer purchase order number.
Delivery address.
Dispatch information.
Transport details.
Additional item descriptions.
Product specifications.
Discount information.
Bank details.
Payment instructions.
Terms and conditions.
Authorised signature sections.
QR codes through suitable supported implementations.
These customisations can help businesses create professional invoices that match their branding and operational requirements.
B. Purchase Invoice Customisation
Purchase departments may require additional information while recording supplier invoices.
TDL can be used to extend supported purchase-entry screens and reports.
Possible requirements include:
Supplier reference numbers.
Purchase order information.
Additional item specifications.
Quality inspection details.
Internal approval information.
Department codes.
Additional expense information.
Customised purchase summaries.
The exact implementation depends on the available TDL extension points.
C. Customised Accounting Reports
Standard reports are useful for routine accounting, but management teams sometimes need specialised reports.
TDL can help develop additional reports such as:
Customer-wise sales reports.
Supplier-wise purchase reports.
Outstanding payment analysis.
Collection performance reports.
Product profitability reports.
Branch-wise sales reports.
Monthly expense analysis.
Department-wise accounting reports.
Project-wise expense reports.
Salesperson performance reports.
Stock ageing reports.
Purchase price comparison reports.
These reports can help business owners understand their financial performance and make informed decisions.
D. Voucher Entry Customisation
Businesses may require additional fields or validation rules while entering accounting vouchers.
TDL can be used to customise supported voucher interfaces.
For example:
Additional reference fields.
Delivery instructions.
Internal approval references.
Department information.
Project identification.
Salesperson details.
Customer-specific information.
Additional transaction validations.
This can help maintain more structured accounting records.
E. Inventory and Stock Customisation
Businesses dealing with physical products often require specialised stock reports.
TDL can support additional inventory-related reporting and interface requirements.
Examples include:
Item-wise stock analysis.
Godown-wise reports.
Batch-wise information.
Product movement reports.
Stock ageing.
Purchase and sales comparison.
Item profitability.
Minimum stock alerts.
Stock valuation reports.
Custom inventory dashboards.
Some inventory structures and core master types are controlled by the Tally platform, so not every requested change can be implemented through TDL.
4. How Does TDL Work?
TDL uses a definition-based programming structure.
Developers create definitions that describe how a customised screen, report, field, menu or other supported component should behave.
Some important TDL concepts include:
Definitions
Definitions form the foundation of TDL programming.
They specify the structure and behaviour of customised components.
Attributes
Attributes determine how a definition behaves and how its information is displayed.
Modifiers
Modifiers help extend or alter existing definitions.
Objects
Objects represent structured information within Tally Prime, such as accounting and inventory records.
Collections
Collections help retrieve and organise groups of objects for processing and reporting.
Functions
Functions support calculations and other logical operations.
Actions and Events
These help execute operations in response to user interactions or application events.
Reports, Forms and Fields
These components define the structure of customised screens and reports.
A developer combines these elements to create a TDL solution according to the business requirement.
5. How to Use a TDL File in Tally Prime
If you have received a TDL customisation file from a developer, you can configure Tally Prime to load it.
TDL files commonly use the .tdl extension.
The general procedure is as follows:
Step 1: Obtain the TDL File
Receive the TDL file from the developer or authorised solution provider.
Verify that it is compatible with your Tally Prime release.
Step 2: Save the File
Save the TDL file in a dedicated folder.
For example:
C:\TallyCustomisation
Step 3: Open Tally Prime
Launch Tally Prime on your computer.
Step 4: Open Configuration Settings
Access the TDL and Add-On configuration through the relevant settings in your Tally Prime release.
The exact menu labels may vary between releases.
Step 5: Configure the TDL File
Enable the option to load the required TDL or local customisation.
Enter the file location where the TDL file is stored.
Step 6: Save the Configuration
Save the settings and restart Tally Prime if required.
Step 7: Test the Customisation
Open the relevant menu, voucher or report and verify that the additional functionality is available.
Always test a new customisation using a backup or test company before deploying it in live accounting data.
6. How to Develop a Custom TDL for Tally Prime
Developing a TDL solution requires an understanding of the business requirement and the technical structure of Tally Prime.
The general development process involves the following stages.
Stage 1: Understand the Requirement
The developer should first understand what the business wants to achieve.
For example, a company may want a report showing customer-wise sales, outstanding amounts and the last payment received.
Stage 2: Prepare the Functional Specification
Document the required fields, calculations, filters, report layout and expected output.
Stage 3: Design the TDL Structure
Plan the definitions, collections, objects, functions and actions needed for the customisation.
Stage 4: Develop the TDL
Write the required code using the TDL development environment.
Stage 5: Test the Solution
Test the customisation with sample accounting data.
Stage 6: Validate the Output
Compare the customised reports and calculations with the underlying accounting records.
Stage 7: Deploy the Customisation
After successful testing, configure the TDL in the production environment.
Stage 8: Provide Documentation and Support
Maintain the source code, version information and deployment instructions.
This makes future updates and troubleshooting easier.
7. Can TDL Automate Accounting Operations?
Yes. TDL can support automation of various business processes within Tally Prime.
Examples include:
Automatic calculations.
Custom validation checks.
Additional alerts.
Automated field population.
Custom voucher workflows.
Special reporting buttons.
Additional data entry controls.
Report generation.
Data export.
Supported external application integration.
For example, a distributor may want an additional warning when a customer exceeds a specified outstanding credit limit.
A suitable TDL solution can be designed to display the required warning during the relevant workflow.
However, developers must understand the supported validation mechanisms and avoid implementing customisations that conflict with Tally Prime's standard accounting controls.
8. Can Tally Prime Be Integrated with External Applications Using TDL?
Yes. TDL is one of the methods available for integrating Tally Prime with external applications.
Businesses may require integration with:
CRM software.
ERP applications.
E-commerce platforms.
Inventory management applications.
Business intelligence systems.
Custom web applications.
Reporting dashboards.
Other accounting applications.
Tally Prime supports multiple integration approaches, including TDL-based customisation and external interfaces using technologies such as XML, JSON and ODBC, depending on the integration scenario.
For example, an e-commerce business may want to transfer sales information into Tally Prime.
A properly designed integration can help exchange relevant information while reducing manual data entry.
Integration design should include authentication, validation, duplicate prevention, error handling and data security.
9. What Is the Difference Between TDL and Tally TCP?
TDL and TCP are related but different.
TDL
Tally Definition Language.
Used to develop customisations.
Generally available as readable source files.
Can be edited using an appropriate development environment.
Used to build reports, screens and business workflows.
TCP
Tally Compliant Product.
A compiled or packaged form of a TDL-based customisation.
Commonly used to distribute protected TDL solutions.
May contain restrictions on editing and access.
Used for deploying commercial TDL products.
A TCP file is not simply an ordinary text file.
Its internal structure and protection mechanisms differ from those of a source TDL file.
Businesses should retain their original source code and development documentation when commissioning custom software.
10. Which Industries Benefit Most from TDL Customisation?
TDL can be useful across several business sectors.
Manufacturing: Production-related reports, material consumption analysis and customised inventory information.
Construction: Project expenses, contractor payments, material reports and job-wise profitability.
Trading: Customer outstanding analysis, sales performance and stock reports.
Retail: Product-wise sales analysis, discount reports and inventory information.
Pharmaceuticals: Batch-related reports and additional product information.
Import and Export: Foreign currency reporting, shipment references and specialised invoice formats.
Distribution: Credit monitoring, salesperson reports and customer-wise profitability.
Service Businesses: Project billing, service income and expense tracking.
11. Why Choose Professional TDL Development Services?
Developing a reliable TDL customisation requires more than writing a few lines of code.
The developer must understand accounting principles, Tally Prime's internal structure and the practical requirements of the business.
Poorly designed customisations can create incorrect reports, slow performance or conflicts with existing extensions.
TallySolution.net offers Tally-related technical and customisation services that can include:
TDL development.
Custom sales invoice design.
Purchase invoice customisation.
Voucher screen modifications.
Special accounting reports.
Inventory reports.
Outstanding analysis.
Management dashboards.
Data import and export.
Tally integration.
TDL debugging.
Existing TDL modification.
TCP-related technical assistance.
Tally Prime implementation.
Multi-user configuration.
Tally on Cloud.
Remote technical support.
We can help businesses identify their requirements and evaluate suitable customisation approaches.
Frequently Asked Questions
1. What does TDL stand for in Tally Prime?
TDL stands for Tally Definition Language. It is the native development language used to extend and customise Tally Prime.
2. Is TDL free?
The language documentation and certain development resources are available through Tally's official developer resources. Commercial deployment, developer tools, licensing and distribution requirements may vary.
3. Can I customise a Tally Prime invoice using TDL?
Yes. TDL can be used to customise supported invoice layouts and add business-specific information.
4. Can TDL create new reports?
Yes. Developers can create customised reports using TDL.
5. Can TDL integrate Tally Prime with a website?
Yes. Tally Prime can be integrated with external applications and websites through supported integration methods.
6. Can I modify an existing TDL file?
Yes, if you have the appropriate source code and authorisation to modify it.
7. What is the difference between TDL and TCP?
TDL is the development language and source customisation format, while TCP is a packaged compiled form used to distribute TDL-based solutions.
8. Can TDL automate accounting entries?
TDL can support automation and validation of business workflows. The exact level of automation depends on the requirement and supported platform capabilities.
9. Does TDL work with Tally Prime?
Yes. TDL is the native development language used for customising Tally Prime. Compatibility should be verified for the specific release.
10. Can I hire a TDL developer for customised accounting reports?
Yes. Businesses can engage experienced TDL developers to build reports, invoice formats, integrations and other supported extensions.
Conclusion
TDL is one of the most valuable technologies for extending Tally Prime beyond its standard accounting functionality.
It allows businesses to develop customised reports, invoice formats, voucher screens, validations, automation and integration solutions according to their operational requirements.
Whether you operate a manufacturing company, trading business, construction organisation, retail outlet or international enterprise, the right TDL customisation can help improve accounting workflows and provide more meaningful business information.
For TDL development, invoice customisation, specialised reports, integration, debugging and Tally Prime technical support, visit TallySolution.net.
























