Home Python C Language C ++ HTML 5 CSS Javascript Java Kotlin SQL DJango Bootstrap React.js R C# PHP ASP.Net Numpy Dart Pandas Digital Marketing

Introduction to TDL for Customization in Tally Prime


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.

Step 1: Understanding TDL (Tally Definition Language)

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.

Step 2: Setting Up TDL in Tally Prime

Before you begin writing and using TDL scripts in Tally Prime, you need to set up your environment properly. Here are the steps:

  1. Open Tally Prime on your computer.
  2. On the Gateway of Tally screen, press F12 to access the Configuration menu.
  3. Select Advanced Configuration and scroll to the TDL settings.
  4. In the TDL configuration settings, you will see an option to Load TDL.
  5. Browse to the location where your TDL file is saved and select the file to load it into Tally Prime.

Once the TDL file is loaded, your customizations will take effect, and you can begin using them in Tally Prime.

Step 3: Writing Your First TDL Script

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.

Example: Custom Welcome Message

      [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.

Step 4: Customizing Reports Using TDL

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.

Example: Adding Custom Text to the Profit and Loss Report

      [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.

Step 5: Automating Tasks Using TDL

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.

Example: Automatically Filling a Voucher Entry

      [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.

Step 6: Debugging TDL Scripts

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.

Step 7: Real-World Example: Customizing the Invoice Format

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.

Example: Custom Invoice Format

      [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.

Conclusion

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!



Advertisement

Advertisement

Advertisement





Q3 Schools : India


Online Complier

HTML 5

Python

java

C++

C

JavaScript

Website Development

HTML

CSS

JavaScript

Python

SQL

Campus Learning

C

C#

java