Tally Prime provides a powerful customization tool through TDL (Tally Definition Language). TDL allows you to create, modify, and extend Tally’s functionalities, enabling businesses to adapt the software to their unique requirements. This article introduces TDL and guides you step-by-step through creating simple customizations in Tally Prime using real examples.
TDL is a programming language developed by Tally Solutions, specifically designed for customizing Tally. It allows users to enhance the features of Tally Prime by modifying the user interface, adding new reports, automating processes, and integrating with other systems. With TDL, you can:
TDL scripts are written in a simple text editor and are saved with a .tdl file extension. These scripts are then loaded into Tally Prime to implement the customizations.
Before you begin writing and using TDL scripts in Tally Prime, you need to set up your environment properly. Here are the steps:
Once the TDL file is loaded, your customizations will take effect, and you can begin using them in Tally Prime.
Now that you have set up TDL in Tally Prime, let’s create a simple TDL script. For this example, we will create a custom message that will appear when you open Tally Prime.
[System: Formula] Welcome Message = "Welcome to Tally Prime!" [Display: Welcome Screen] Title = "Custom Tally Prime Message" Message = $Welcome Message
In this script:
To use this script, simply save it as welcome.tdl and load it into Tally Prime following the setup process described in Step 2. Once loaded, you will see the custom message when you open Tally Prime.
One of the most common uses of TDL is to customize Tally’s reports, such as the Profit and Loss Account or the Balance Sheet. Let’s take a look at how you can modify a report in Tally Prime using TDL.
[Report: Profit and Loss] Add: Line: 100: "Custom Note: This is a customized Profit and Loss report"
In this example:
After saving this script as custom_report.tdl and loading it into Tally Prime, the custom message will appear at the specified location in the Profit and Loss report.
TDL can also be used to automate repetitive tasks within Tally Prime. For example, you can create a script that automatically fills in the voucher entry with default values or updates records at regular intervals.
[Voucher: Sales] On Accept: Alter: Voucher: Default Sales
In this example:
This script automates the voucher entry process, ensuring that each Sales voucher is filled with the default values every time it is created.
While writing TDL scripts, you may encounter errors. Tally Prime provides an easy way to debug and troubleshoot your TDL code. Here are some tips:
Debugging TDL scripts is part of the learning process, and it becomes easier with practice.
Customizing invoices is a common request for businesses using Tally Prime. Let’s create a simple customization for the invoice format to include the company’s logo and custom footer text.
[Part: Invoice] Add: Field: Below: 1: "Company Logo" Add: Field: Below: 2: "Custom Footer: Thank you for doing business with us!"
In this example:
This customization allows you to enhance the appearance and information displayed on the invoice printed from Tally Prime. After saving this TDL script and loading it into Tally Prime, the custom fields will appear in the invoice layout.
TDL is a powerful tool for customizing Tally Prime to meet the specific needs of your business. By following the steps outlined in this article, you can start creating simple customizations and gradually move to more advanced modifications. With TDL, you have the flexibility to tailor Tally Prime to suit your business processes, saving time and enhancing productivity. Start experimenting with TDL today and unlock the full potential of Tally Prime!