;; ============================================================
;; Product   : Party Email Show in Group Summary
;; Store     : www.gyanamrittdl.com
;; Support   : WhatsApp +91 79924 46290
;; For       : TallyPrime
;; ============================================================
;; What it does : Adds a EMAIL column in Group Summary
;;                (e.g. Sundry Debtors / Sundry Creditors).
;;                Email ID shows on ledger lines only.
;;                Trial Balance and other reports do not change.
;; How to load  : F1 Help > TDL & Add-On > Manage Local TDL
;;                > Load TDL on Startup : Yes > give this file path.
;; ============================================================

;------------------------- ON / OFF VARIABLE -------------------------
[Variable: GAF64Show]
    Type    : Logical
    Default : No

[System: Variable]
    GAF64Show : No

[#Report: Group Summary]
    Variable : GAF64Show
    Set      : GAF64Show : Yes

;------------------------------ FIELD --------------------------------
[Field: GAF64 EmailF]
    Use    : Name Field
    Set as : $Email
    Width  : 22
	Line:0
    Style  : Small
    Color  : Blue
    Border : Thin Right

;--------------------------- TITLE LINES -----------------------------
[#Line: DSP ItemTitle]
    Option : GAF64 TitleBlank : ##GAF64Show

[#Line: DSP CmpTitle]
    Option : GAF64 TitleBlank : ##GAF64Show

[#Line: DSP DateTitle]
    Option : GAF64 TitleBlank : ##GAF64Show

[#Line: DSP AmtOneTitle]
    Option : GAF64 TitleText : ##GAF64Show

[#Line: DSP AmtTwoTitle]
    Option : GAF64 TitleBlank : ##GAF64Show

[#Line: DSP Totals]
    Option : GAF64 TitleBlank : ##GAF64Show

[!Line: GAF64 TitleBlank]
    Add   : Field : At Beginning : GAF64 EmailF
    Local : Field : GAF64 EmailF : Set as : ""

[!Line: GAF64 TitleText]
    Add   : Field : At Beginning : GAF64 EmailF
    Local : Field : GAF64 EmailF : Set as : "EMAIL"
    Local : Field : GAF64 EmailF : Style  : Small Bold

;--------------------------- LEDGER LINE -----------------------------
[#Line: DSP AccLine]
    Option : GAF64 AccOpt : ##GAF64Show

[!Line: GAF64 AccOpt]
    Add : Field : At Beginning : GAF64 EmailF

;============================== END ==================================
