;; ============================================================
;; Product   : Item HSN Show in Invoice Entry
;; Store     : www.gyanamrittdl.com
;; Support   : WhatsApp +91 79924 46290
;; For       : TallyPrime
;; ============================================================
;; What it does : In the invoice, shows the HSN/SAC code of each item next
;;                to the item name.
;; How to load  : F1 (Help) > TDL & Add-On > Manage Local TDL >
;;                Load TDL on Startup = Yes > give the path of this file
;; ============================================================

;;------------------------- INVOICE ITEM LINE ------------------------
[#Line: EI ColumnOne]
    Option : GAF40ColOpt1 : Yes

[!Line: GAF40ColOpt1]
	Add:Right Field:At Beginning: GAF40 TitleF
    Local : Field : GAF40 TitleF : Set as : "HSN"

[#Line: EI ColumnTwo]
    Option : GAF40ColOpt2 : Yes

[!Line: GAF40ColOpt2]
    Add   : Field : After : VCH ItemTitle : GAF40 TitleF
	Add:Right Field:At Beginning: GAF40 TitleF
    Local : Field : GAF40 TitleF : Set as : ""

[#Line: EI InvInfo]
    Option : GAF40ItemOpt : Yes
[#Line: CI InvInfo]
    Option : GAF40ItemOpt : Yes

[!Line: GAF40ItemOpt]
	Add:Right Field:At Beginning:GAF40 ValueF
[Field: GAF40 TitleF]
    Use    : Name Field
    Set as : ""
    Width  : 12
    Align  : Center
    Style  : Small Bold
    Skip   : Yes
	Color:Blue

[Field: GAF40 ValueF]
    Use        : Name Field
    Set as     : if $$IsEmpty:$StockItemName then "" else $GSTHSNCode:StockItem:$StockItemName
    Set Always : Yes
    Width      : 12
    Align      : Center
    Color      : Blue
    Style      : Small Bold
    Skip       : Yes

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