;; ============================================================
;; Product   : Round Off Amount Show in Day Book
;; Store     : www.gyanamrittdl.com
;; Support   : WhatsApp +91 79924 46290
;; For       : TallyPrime
;; ============================================================
;; What it does :
;;   Adds a ROUND OFF column in Day Book. It shows the total of
;;   ledgers whose name starts with "Round" (e.g. Round Off),
;;   with Dr / Cr sign.
;; How to load  : Tally > F1 Help > TDL & Add-On > Manage Local TDL
;;                > Load TDL on Startup = Yes > give the path of this file
;; ============================================================

[Field: GAF52RoundOff]
    Use      : Name Field
    Set as   : if $$IsEmpty:@@GAF52Amt then "" else $$String:@@GAF52Amt:"DrCr"
    Width    : 10
    Color    : if @@GAF52Amt < 0 then "DarkRed" else "DarkGreen"
    Align    : Right
    Style    : Small Bold
    Border   : Thin Right

[System: Formula]
    GAF52Amt     : $$FilterAmtTotal:AllLedgerEntries:GAF52IsRound:$Amount
    GAF52IsRound : $LedgerName Starting With "Round"

;----------------------------- DAY BOOK ------------------------------
[#Line: DBTitle1]
    Add   : Field : At Beginning : GAF52RoundOff
    Local : Field : GAF52RoundOff : Set as : "ROUND OFF"

[#Line: DBTitle2]
    Add   : Field : At Beginning : GAF52RoundOff
    Local : Field : GAF52RoundOff : Set as : ""

[#Line: DSP VchDetail]
    Add   : Field : At Beginning : GAF52RoundOff

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