Hi, I am trying to write the Code for contrl the Sales returns( Credit Note) which the party returned, not to enter in duplicate by unknowingly but i am not getting the results , please assist me where is that fault coding [#Field: GST TransInfo SuplierCNDNNo] On:Accept:Yes:Field Accept On:Accept:Yes:Call:cndnRefreshtdls [function : cndnRefreshtdls] 01 : Refresh TDL [#Field : EiConsignee] Control : IsTitle : IF $$Iscreditnote:$VoucherTypeName And ($$InCreatemode OR $$InDuplicateMode) Then @@cndnChkVal Else "" Set Always :Yes [Collection : cndnVchrefColl] use : GST_eWayBillSrcFetchTemplate ;Type : Voucher ;type : GST_eWayBillSrcFetchTemplate Source Prefetch : VoucherNumber ,VATPartyTransReturnNumber,LedgerName,PartyLedgerName Filter : cndnFltVal Filter : Fltvalparty [System : Formulas] IsTitle : "ERROR !!"+$$NewLine+$$NewLine+"Duplicate Debit Note No."+$$NewLine+$$NewLine+"Please Check Debit Note No." cndnChkVal : NOT $$ISEMPTY:$VATPartyTransReturnNumber AND $$NumItems:cndnVchrefColl > 0 cndnFltVal : $VATPartyTransReturnNumber = #GSTTransInfoSuplierCNDNNo Fltvalparty : $LedgerName = #EIconsignee