Hello guys,
Here is my requirement - do not allow printing of Purchase ORder untill the status is RELEASED.
Here is my code -
Purchase Header - OnPreDataItem()
IF NOT CurrReport.PREVIEW THEN BEGIN
IF STATUS =<> STATUS::RELEASED THEN
ERROR(TEXT50000, "No.");
END;
It throws the error for OPEN as well as RELEASED purchase orders. What might be wrong?
0
Answers
What the =<> ??
I know only <>.
Its actually <>
Purchase Header - OnPreDataItem()
At that moment you don't have a Record. (it's empty)
And Status always = 0
Thanks vijay_g for suggesting TESTFIELD.
I am marking this post as resolved :thumbsup: