;; ============================================================
;; Product   : Party State Show in Voucher Entry
;; Store     : www.gyanamrittdl.com
;; Support   : WhatsApp +91 79924 46290
;; For       : TallyPrime
;; ============================================================
;; What it does : While making a voucher, shows the state 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 : GAF36NarrOpt : @@GAF36On

[!Part: GAF36NarrOpt]
    Add : Line : Before : Vch Narrprompt : GAF36 InfoLine

[System: Formula]
    GAF36On : Yes

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

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

[Field: GAF36 ValueF]
    Use        : Name Field
    Set as     : if $$IsEmpty:$PartyLedgerName then "" else $LedStateName:Ledger:$PartyLedgerName
    Set Always : Yes
    Width      : 24
    Color      : Blue
    Style      : Small Bold
    Skip       : Yes
	Background:White

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