Skip to content
TheChatArchiveThe Chat Archive
Qwenqwen3-30b-a3b· Alibaba (Qwen)Hugging Face LMArena Human Preference 140K

create tdl as per instruction correctly

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Claudeclaude-sonnet-4-20250514’s answer.
  1. User

    create tdl as per instruction correctly

  2. Qwen Assistant

    Here's a correctly structured TDL for your "Delete Empty Ledgers" utility in Tally ERP 9:


    TDL Code: Delete Empty Ledgers Report

    [Menu : Gateway of Tally]
        Item : Delete Empty Ledgers : Display : EmptyLedgerReport
    
    [Report : EmptyLedgerReport]
        Form : EmptyLedgerReport
    
    [Form : EmptyLedgerReport]
        Part : EmptyLedgerReport
        Button : Select All Button, Delete Ledger
        Width : 100% Page
    
    [Part : EmptyLedgerReport]
        Line : EmptyLedgerReport
        Repeat : EmptyLedgerReport : EmptyLedgerReportColl
        Scroll : Vertical
    
    [Line : EmptyLedgerReport]
        Field : Name Field
        Right Field : Amount Field
        Local : Field : Name Field : Set As : $Name
        Local : Field : Amount Field : Set As : $ClosingBalance
    
    [Collection : EmptyLedgerReportColl]
        Type : Ledger
        Filter : IsaEmptyLedger
    
    [System : Formula]
        IsaEmptyLedger : $$IsEmpty:$ClosingBalance And $$IsEmpty:$DebitTotals
    
    [Button : Select All Button]
        Key : Alt +1
        Action : Select All
    
    [Button : Delete Ledger]
        Key : Alt +2
        Action : Delete Object
    

    Explanation of Key Components

    1. Menu Structure:

      • Gateway of Tally → Delete Empty Ledgers → EmptyLedgerReport (the custom report).
    2. Report Layout:

      • A scrollable list (Scroll : Vertical) displaying:
        • Ledger Name ($Name)
        • Closing Balance ($ClosingBalance).
    3. Data Filtering:

      • The IsaEmptyLedger formula checks for ledgers with:
        • No closing balance ($$IsEmpty:$ClosingBalance)
        • No debit totals ($$IsEmpty:$DebitTotals).
    4. Buttons:

      • Select All (Alt + 1): Selects all items in the list.
      • Delete Ledger (Alt + 2): Deletes the selected ledger(s).

    Optional: Add Stock Item Support

    To include empty stock items, uncomment the following lines:

    [Collection : EmptyLedgerReportColl]
        Type : StockItem
        Filter : IsaEmptyItem
    
    [System : Formula]
        IsaEmptyItem : $$IsEmpty:$ClosingBalance And $$IsEmpty:$InwardQuantity
    

    How to Use

    1. Open Tally ERP 9.
    2. Go to Gateway of Tally → Delete Empty Ledgers.
    3. The report will display all empty ledgers (or stock items, if enabled).
    4. Use Alt + 1 to select all, then Alt + 2 to delete them.

    This TDL ensures clean-up of unused ledgers, improving your chart of accounts. Let me know if you need enhancements! 🚀

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.