Hey guys please help me......... this code is working, but i want to run this code in only particular voucher type, ie.... "Excise Sales" But is working in all sales voucher. please correct.... [#Part: CMP Statutory Left] Option : EI Consignee :VoucherTypeName : @@IsExcise Sales Add : Line : At End : CMP UseCustomisedModule ;; Company Level Variable [Line :CMP UseCustomisedModule] Fields : Medium Prompt, CMP UseCustomisedModule Local : Field : Medium Prompt : Info : $$LocaleString:"Use Tax Invoice Module ?" Local : Field : Medium Prompt : Color : Red [Field: CMP UseCustomisedModule] Use : Logical Field Storage : T1 Set always : Yes Inactive : NOT $IsAccountingOn OR NOT $IsInventoryOn Modifies : T1 Color : Blue [System : UDF] T1 :Logical : 6001 [System : Formula] USeCustomInvoice : $T1:Company:##SvCurrentCompany ;; Voucher Level TDL Start [#Field: EI Consignee] Control : TinMsg : $$InCreateMode AND @@Vishal AND $$IsEmpty:$(Ledger,#EIConsignee).VATTINNumber AND @@USeCustomInvoice Control : TinMsg : $$InCreateMode AND @@Vishal AND $$IsEmpty:$(Ledger,#EIConsignee).ExciseRegNo AND @@USeCustomInvoice Set Always : Yes [System : Formula] TinMsg : "Customer TIN/ECC " + $$NewLine + " Number is Missing !!!" vishal : NOT @@VATDescVoucherTypes ;;EOF