How To Check System Date With Invoice Date

Discussion in 'Free Source Codes' started by Ruturaj Wachkawade, Apr 3, 2019.

    
  1. Ruturaj Wachkawade

    Ruturaj Wachkawade New Member


    Hello sir,

    We want make tdl to check system date and invoice date is same or not at the time of creating sales invoice only to prevent back dated sales voucher entry
    the logic is as below

    sales invoice mode after entering date call goes to function if dates are equal then it gets to next field else it will shows message and stay in date field

    kindly help as we are new

    If $$date=$$MachineDate
    Else
    MSGBOX : "Error!!" : "Check Date"

    we have implemented as above but it showing error and how to apply this function to sales voucher only
    kindly help
     


  2. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Use "CONTROL" in your field.......

    Lookup "Control" in TDE..................for ideas.
     


  3. sattam

    sattam Active Member


    [#Field: Plain VCH Date]
    Add:eek:ption:prevent Back dated entry:mad:@IsSales

    [!Field : Prevent Back dated entry]
    Control : SkcTitle : @@SkcVal

    [System : Formula]

    SkcTitle : "ERROR !!"+$$NewLine+$$NewLine+"System Date Not same with Invoice Date"+$$NewLine+$$NewLine+"Please Check Invoice Date"

    SkcVal :$$InCreateMode AND NOT ##VARVchDate=$$MachineDate
     


  4. NSA

    NSA Member


    Dear Expert,

    I wish to add a field before "VCH Plain Date". Can any please help me with the name of relevant line? Or can you please suggest which form I have to refer?
     


  5. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    You have the FIELD name!! How did you get it?

    Same way -- From Field name you can get the LINE name in the DEVELOPER.
     


  6. NSA

    NSA Member


    Thank you Sir,

    I was searching in the Line, But it was defined in a different way. So I simply made a find option in Developer!!!!

    Sometimes easiest method will be knocking at the last.....;););););););)
     


  7. Amit Kamdar

    Amit Kamdar Administrator Staff Member


    Making TDL is like reverse engineering........ so always you have to search backwards and find things. :)
     


Share This Page