For Tally Erp 9 | Tdl
The Problem: Your warehouse needs a barcode on every sales invoice.
TDL Solution: Write a custom #Part: Print Invoice that renders the order number as a Code-128 barcode font string. (Requires enabling a barcode font in Tally).
Problem: You want Tally to warn you (not deny, just warn) if you are selling more quantity than available stock. tdl for tally erp 9
Solution TDL Code:
[Voucher Type: Sales] Key : Alt+W : LowStockWarning[Function: LowStockWarning] Object : InventoryEntry Condition : $$IsRemoteCall Action : CheckStock The Problem: Your warehouse needs a barcode on
[Function: CheckStock] Local : CurrQty, AvailQty CurrQty = ##SVCurrentQty AvailQty = ##SVClosingBalance IF CurrQty > AvailQty THEN Alert "WARNING: Selling more than available stock. Available: " + AvailQty ENDIF
Tally Definition Language (TDL) is the scripting and customization language used to extend and tailor Tally.ERP 9 beyond its out‑of‑the‑box capabilities. For accountants, developers, and business owners who rely on Tally.ERP 9, TDL unlocks automation, custom reports, tailored screens and business logic—helping adapt the product to industry‑specific workflows without replacing the core accounting engine.
TDL syntax is proprietary and tag-based. It uses a hierarchical structure to define objects. Problem: You want Tally to warn you (not
You can write TDL to auto-populate Narration based on the party selected, or automatically apply a discount if the bill amount exceeds $10,000. This reduces human error.