window

In the purchase order form if we click post button a window appears with options, -invoice,receive and receive and invoice. if we want to remove 2 options in that window and keep only receive option radiio button how to do it?

Hi, it’s easy to do. This change must be done in codeunit 91.

“Document Type”::Order:
BEGIN
Selection := STRMENU(Text000,3);
IF Selection = 0 THEN
EXIT;
Receive := Selection IN [1,3];
Invoice := Selection IN [2,3];
END;

One of the possible solutions could be this one:

“Document Type”::Order:
BEGIN
IF NOT CONFIRM(‘Do you want to post the receipt?’) THEN
EXIT;

Receive := TRUE;
END;

Bye
Marco