;; ============================================================
;; Product   : Party Credit Period Show in Voucher Entry
;; Store     : www.gyanamrittdl.com
;; Support   : WhatsApp +91 79924 46290
;; For       : TallyPrime
;; ============================================================
;; What it does : While making a voucher, shows the default credit period
;;                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 : GAF37NarrOpt : @@GAF37On

[!Part: GAF37NarrOpt]
    Add : Line : Before : Vch Narrprompt : GAF37 InfoLine

[System: Formula]
    GAF37On : Yes

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

[Field: GAF37 PromptF]
    Use    : Name Field
    Set as : "Credit Period :"
    Width  : 18
    Style  : Small Bold
    Skip   : Yes

[Field: GAF37 ValueF]
    Use        : Name Field
    Set as     : if $$IsEmpty:$PartyLedgerName then "" else $$LocaleString:$BillCreditPeriod:Ledger:$PartyLedgerName
    Set Always : Yes
    Width      : 16
    Color      : Blue
    Style      : Small Bold
    Skip       : Yes
	Background:white
;;============================ END =====================================
