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...
Suggested Answer

How to get sales invoice or credit memo's new document number after it posts?

(0) ShareShare
ReportReport
Posted on by 150

I have a posted sales invoice or a posted credit memo and I'm trying to get what it's original sales invoice or credit memo document number was. Or is there some event I can subscribe to when it posts that gives me the starting document number and the posted document number? Using Pre-Assigned No. doesn't work for me because if you start with an invoice with a negative value, it changes it into a credit memo when you post it and pre-assigned no. becomes the credit memo number that didn't actually exist before. I need to know what the original invoice number was no matter how it gets posted.

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Hello,

    It sounds like you are looking for the Original Order No. from the Sales Order, Sales Invoice, or Sales Credit Memo before you post it. The Pre-Assigned No. field does denote the document number before posting.

    pastedimage1612456541874v1.png pastedimage1612456561775v2.png

    Hope this helps.

    Thanks,

    Steve

  • Suggested answer
    TheDoubleH Profile Picture
    5 on at

    Quick Answer:

    If You go to your Sales & Receivables Setup, and set the 'Invoice Nos.' and 'Posted Invoice Nos.' / 'Credit Memo Nos.' and 'Posted Credit Memo Nos.' to the same number series, the 'unposted' no will carry to the posted document. 

    pastedimage1612464356084v1.png

    Longer Answer - In NAV - and now BC, the Invoice and Credit memo is a draft, whereas the posted document is - well - posted. In the posted Document, Most companies do not want to have 'gaps' in the posted document range. By having two different number series, you ensure that the posted document are serialized in the order they were posted.

    If you are OK with them not being sequenced that way, you can specify the same no. series for both the unposted and posted. However doing that, will insert a Posted Record for any 'draft' invoices and credit memos you end up deleting.

    Note - Some users will also use the same no. series for both Invoices and Credit memos - which can make some sense as well - all depending on your scenario.

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,092

#2
YUN ZHU Profile Picture

YUN ZHU 663 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 515

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans