web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    887 Moderator on at
    How Can restrict the end users from creating the sales invoice in the feature date
    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
    92,576 Super User 2025 Season 2 on at
    How Can restrict the end users from creating the sales invoice in the feature date
    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,202 on at
    How Can restrict the end users from creating the sales invoice in the feature date
    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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,160

#2
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 2,943

#3
Sumit Singh Profile Picture

Sumit Singh 2,823

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans