Disable message "Shipment Date...is before Work Date (5sp1)

SYLV1GSYLV1G Member Posts: 93
Hello

When i print for exemple the Test Report of an invoice i obtain the message "Shipment Date dd.mm.yyyy is before Work Date...".

Is there a way to disable this warning ?

Thanks in advance for your help

SG

Comments

  • SYLV1GSYLV1G Member Posts: 93
    Code to comment in Trigger OnValidate of Shipment Date field of Table 37

    (Solution given by David Cox on another forum)

    IF ("Shipment Date" < WORKDATE) AND (Type <> Type::" ") THEN
    IF NOT (HideValidationDialog OR HasBeenShown) THEN BEGIN
    MESSAGE(
    Text014,
    FIELDCAPTION("Shipment Date"),"Shipment Date",WORKDATE);
    HasBeenShown := TRUE;
    END;
  • kapamaroukapamarou Member Posts: 1,152
    So this test report calls VALIDATE on Shipment Date :-k

    Does it also modify the record :?:
  • SYLV1GSYLV1G Member Posts: 93
    I don't know #-o
  • kapamaroukapamarou Member Posts: 1,152
    Add a breakpoint to the onvildate trigger. Then run the report with the debugger enabled. When it stops at the trigger look at the call history to find where the code was called from...
Sign In or Register to comment.