RE: Range of document date in orders(Similar to allow posting date in user setup)
Hello,
If your requirement is similar to posting dates then
Based on your needs,
create 2 fields "From Document Date" & "To Document Date" in the sales Setup (Application Level) or in the User Setup (User Level)
Write the validation on Document date field, and raise the error if the date is beyond "From Document Date" & "To Document Date".
for reference
IF (DocumentDate < AllowDocumentFrom) OR (DocumentDate > AllowDocumentTo) then Error('Document Date not in the range!');