In Tally Prime, I have made changes in configuration by added 3 logical fields while printing: 1.Print Batch/Lot No. 2.Print Mfg Date 3.Print Expiry Date If we configure "Yes" then these columns has to print, else "No" then these columns has to hided. But the output be like: Even it is "Yes" or "No", these three columns are displaying in the default print page. Please help me for this query. The Source code is as follows: [#Field: default] Add : Tooltip : $$DescName [#Collection: Sales VoucherDetails] Use : Print Config Tmpl Add : Object: After : SAWithBatches:BatchNoline,MfgDateLine,ExpiryDateine [Object: BatchNoline] Use : Vch Output Configuration Name : $$LocaleString:"Print Batch/Lot No." Value : ##BatchNoline Action : ConfigAction : Set : BatchNoline : NOT ##BatchNoline [Object: MfgDateLine] Use : Vch Output Configuration Name : $$LocaleString:"Print Mfg Date" Value : ##MfgDateLine Action : ConfigAction : Set : MfgDateLine : NOT ##MfgDateLine [Object: ExpiryDateine] Use : Vch Output Configuration Name : $$LocaleString:"Print Expiry Date" Value : ##ExpiryDateine Action : ConfigAction : Set : ExpiryDateine : NOT ##ExpiryDateine [Variable: BatchNoline] Persistent : Yes Type : Logical Default : No [Variable: MfgDateLine] Persistent : Yes Type : Logical [Variable: ExpiryDateine] Persistent : Yes Type : Logical [System:UDF] BatchNoline : Logical : 1001 MfgDateLine : Logical : 1002 ExpiryDateine : Logical : 1003 [System: Variables] BatchNoline : No MfgDateLine : No ExpiryDateine : No ;[#Line: SAWithBatches] ; ; Local: Field : Logical Field : Set as : "No" ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; [#Line: EXPINV Column1] Add : Right Fields : Before : EXPINV QtyTitle : BatchTitleFld4,MfgTitleFld4,ExpTitleFld4 Local : Field : BatchTitleFld4 : Use : Name Field Local : Field : BatchTitleFld4 : Set as : "Batch No" Local : Field : BatchTitleFld4 : Align : Center Local : Field : BatchTitleFld4 : Border : Thin Left Right Local : Field : MfgTitleFld4 : Use : Name Field Local : Field : MfgTitleFld4 : Set as : "Mfg Date" Local : Field : MfgTitleFld4 : Align : Center Local : Field : MfgTitleFld4 : Border : Thin Left Right Local : Field : ExpTitleFld4 : Use : Name Field Local : Field : ExpTitleFld4 : Set as : "Expiry Date" Local : Field : ExpTitleFld4 : Align : Center Local : Field : ExpTitleFld4 : Border : Thin Left Right [#Line: EXPINV InvDetails] Add : Right Fields : Before : EXPINV Qty : BatchTitleFld4,MfgTitleFld4,ExpTitleFld4 Local : Field : BatchTitleFld4 : Use : Name Field Local : Field : BatchTitleFld4 : Set as : $BatchName ; Local : Field : BatchTitleFld4 : Border : Thin Left Right Local : Field : MfgTitleFld4 : Use : Name Field Local : Field : MfgTitleFld4 : Set as : $MfdOn ; Local : Field : MfgTitleFld4 : Border : Thin Left Right Local : Field : ExpTitleFld4 : Use : Name Field Local : Field : ExpTitleFld4 : Set as : $ExpiryPeriod ; Local : Field : ExpTitleFld4 : Border : Thin Left Right [#Line: EXPINV AccDetails] Add : Right Fields : Before : EXPINV AccQty : BatchTitleFld3,MfgTitleFld3,ExpTitleFld3 Local : Field : Default : Delete : Border Local : Field : BatchTitleFld3 : Invisible : NOT (@@IsSales OR @@IsCreditNote OR @@IsDelNote) Local : Field : BatchTitleFld3 : Width : 5.5 Local : Field : MfgTitleFld3 : Invisible : NOT (@@IsSales OR @@IsCreditNote OR @@IsDelNote) Local : Field : MfgTitleFld3 : Width : 5.5 Local : Field : ExpTitleFld3 : Invisible : NOT (@@IsSales OR @@IsCreditNote OR @@IsDelNote) Local : Field : ExpTitleFld3 : Width : 5.5 [Field:BatchTitleFld3] Width : 5.5 Border : Thin Left Right [Field:MfgTitleFld3] Width : 5.5 Border : Thin Left Right [Field:ExpTitleFld3] Width : 5.5 Border : Thin Left Right [Field:BatchTitleFld4] Width : 5.5 Invisible : NOT ##BatchNolineVar OR NOT (@@IsSales OR @@IsCreditNote OR @@IsDelNote) Border : Thin Left Right [Field:MfgTitleFld4] Width : 5.5 Invisible : NOT ##MfgDateLineVar OR NOT (@@IsSales OR @@IsCreditNote OR @@IsDelNote) Border : Thin Left Right [Field:ExpTitleFld4] Width : 5.5 Invisible : NOT ##ExpiryDateineVar OR NOT (@@IsSales OR @@IsCreditNote OR @@IsDelNote) Border : Thin Left Right [#Line: EXPINV Totals] Add : Right Fields : Before : EXPINV ActualQtyTotal : BatchTitleFld4,MfgTitleFld4,ExpTitleFld4