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

Announcements

No record found.

News and Announcements icon
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 55
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
    899 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
    99,978 Super User 2026 Season 1 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
    3,341 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,796 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 965 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 664 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans