;; ============================================================
;; Product   : First Item Name Show in Day Book
;; Store     : www.gyanamrittdl.com
;; Support   : WhatsApp +91 79924 46290
;; For       : TallyPrime
;; ============================================================
;; What it does :
;;   Adds an ITEM column in Day Book. It shows the name of the first
;;   stock item of the voucher. Blank for vouchers without items.
;; How to load  : Tally > F1 Help > TDL & Add-On > Manage Local TDL
;;                > Load TDL on Startup = Yes > give the path of this file
;; ============================================================
[#Form:DayBook]
Local:Collection:Default:Fetch:ItemName1st
[#Object:Voucher]
ItemName1st:$$CollectionField:$StockItemName:1:InventoryEntries
[Field: GAF50Item]
    Use      : Name Field
    ;Set as   : $$CollectionField:$StockItemName:1:InventoryEntries
	Set as:$ItemName1st
    Width    : 20
    Color    : Blue
    Style    : Small 
    Border   : Thin Right

;----------------------------- DAY BOOK ------------------------------
[#Line: DBTitle1]
    Add   : Field : At Beginning : GAF50Item
    Local : Field : GAF50Item : Set as : "ITEM"

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

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

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