Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Posting date overulled document date

Posted on by 5

Good afternoon,

I'm using the posting date to bring costs in the right period.
and document is the date what's on the invoice.

Only problem is that the Posting date always overulled the document date when i change the posting date.
Is it possible to turn

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Posting date overulled document date

    Kenny,

    Frist information:

    Order Date: This is the date the order was created. NAV populates this with the work date at the time the order is created.

    Posting Date: This is the date you populate to record the date you want as the Posting Date on the Ledger Entry tables when the order is Shipped and Invoiced.

    Document Date: This is the date the system uses to calculate the Due Date (Payment Due Date) when the order is posted. This date has no use or meaning until posting time. This date defaults to the same date as the Posting Date, but can be overridden if the Due Date should be calculated on a date different than the posting date.

    I learned after reviewing this for a customer that there is a line of code in table 38 (Purchase Header) which sets the Document Date to the Posting Date whenever the Posting Date is changed but only if there are no Incoming Documents attached to the order.  If there is at least one Incoming Document Entry assigned to the invoice, you can change the posting date and it will not change the document date.

    Now the problem is that not too many companies use the Incoming Document feature.  Because of this, you should have your partner (or you can do it if you have access to the C/AL code) comment out the line in the code which tests for this.  The lines in question are shown below (shown already commented out).  Please remember to test this beforehand.
    pastedimage1612363515514v1.png

    Hope this helps.

    Thanks,

    Steve

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans