;; ============================================================
;; Product   : Party Balance Show in Voucher Entry
;; Store     : www.gyanamrittdl.com
;; Support   : WhatsApp +91 79924 46290
;; For       : TallyPrime
;; ============================================================
;; What it does : While making a voucher, shows the current closing
;;                balance (Dr/Cr) of the selected party above Narration.
;; How to load  : F1 (Help) > TDL & Add-On > Manage Local TDL >
;;                Load TDL on Startup = Yes > give the path of this file
;; ============================================================

;;------------------------- VOUCHER ENTRY ----------------------------
[#Part: DBLLINE Narration]
    Option : GAF34NarrOpt : @@GAF34On

[!Part: GAF34NarrOpt]
    Add : Line : Before : Vch Narrprompt : GAF34 InfoLine

[System: Formula]
    GAF34On : Yes

[Line: GAF34 InfoLine]
    Fields : GAF34 PromptF, GAF34 ValueF
	Local:Field:Default:Color:Blue

[Field: GAF34 PromptF]
    Use    : Name Field
    Set as : "Party Balance :"
    Width  : 18
    Style  : Small Bold
    Skip   : Yes

[Field: GAF34 ValueF]
    Use        : Name Field
    Set as     : if $$IsEmpty:$PartyLedgerName then "" else if $$IsDr:$ClosingBalance:Ledger:$PartyLedgerName then $$LocaleString:($ClosingBalance:Ledger:$PartyLedgerName) + " Dr" else $$LocaleString:($ClosingBalance:Ledger:$PartyLedgerName) + " Cr"
    Set Always : Yes
    Width      : 24
    Color      : Blue
    Style      : Small Bold
    Skip       : Yes
	Background:white
;;============================ END =====================================
