web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

How Can restrict the end users from creating the sales invoice in the feature date 

(0) ShareShare
ReportReport
Posted on by 29
Hi Team , 
 
 
How Can restrict the end users from creating the sales invoice in the feature date? 
 
Thanks 
Dileep G
I have the same question (0)
  • Suggested answer
    Shauna Langley Profile Picture
    893 Moderator on at
    Hi,
     
    I don't believe there is anyway to stop the document from being created with a future date but the users posting dates should be set so that they can only post within a certain financial period e.g. month start and end dates.
     
    If I create a sales invoice and enter the dates as 24/10/24 then I can create the document when I post, Business Central/NAV will check that the user can post in that date.  If the dates on my user setup are 01/10/23..31/10/23 then I will get to error to say that I cannot post the transaction.
     
     
    Hope that helps,
    Shauna
  • Verified answer
    YUN ZHU Profile Picture
    95,597 Super User 2025 Season 2 on at
    Hi, if you are referring to the date entered by the user on Sales Invoices, such as Posting Date, Document Date, etc., only customization can be done.
     
     
    Hope this helps as well.
    Thanks.
    ZHU
  • Verified answer
    Kamal Khakhkhar Profile Picture
    1,276 on at
    Hii there,
    As far as i have knowledge you need to make customization for this requirement.in that you can advice your ISV partner to add event on sales invoice page to make a custom code event for validate to restrict the date > Today.
     
    here i suggest code for event for example, Developer can enhance more as per requirement
     
    [EventSubscriber(ObjectType::Page, Page::"Sales Invoice", 'OnAfterValidateEvent', "Posting Date", false, false)]
    local procedure MyProcedure(var Rec: Record "Sales Header"; var xRec: Record "Sales Header")
    begin
    if rec."Posting Date" > Today then
    Error('you are not allow to post future order currently');
    end;
     
    Thank you.
    Kamal Khakhkhar

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,785

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,007 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 948 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans