Party Debitnote Control duplicate

Discussion in 'Free Source Codes' started by jgkumar1976, Jan 21, 2020.

    
  1. jgkumar1976

    jgkumar1976 Member


    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


    upload_2020-1-22_6-27-12.png
     
    Last edited: Jan 22, 2020


  2. jgkumar1976

    jgkumar1976 Member


    finally sucess
     


Share This Page