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
  • Verified answer
    Kamal Khakhkhar Profile Picture
    404 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
  • Verified answer
    YUN ZHU Profile Picture
    81,789 Super User 2025 Season 1 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
  • Suggested answer
    Shauna Langley Profile Picture
    850 Super User 2025 Season 1 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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,013 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans