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

What is the connection between invoice and shipment?

(0) ShareShare
ReportReport
Posted on by

Hello guys,

I need your help:

I have just created an order with an item with quantity 100.

Now I have posted this order with the quantity to ship once with 20, with 30 and with quantity 50 (shipment & invoice).

Now I want to extend our report for printing the invoices so that each invoice has the correct shipment number. Now on all invoices there is always the same shipment number....

I have created some code, but this shows my only the first shipment number or if I use a FindLast the last one:

0243.Code.PNG


Thank you ;)

I have the same question (0)
  • Suggested answer
    Tabrez Ajaz Profile Picture
    785 on at

    Hi @malue,

    Each time you do ship and invoice for any sales order, a Shipment Document and Invoice Document are created for each posting, but if you do multiple shipments and invoices at the end then you will have multiple shipment documents and 1 invoice document. In simple terms, for 1 sales order, you can have multiple shipment documents either only one invoice or multiple.

    Now if I suppose every time when you post an Order you are selecting Ship & Invoice, then, in this case, the same number of Posted Shipment Document and Posted Invoice Document will create, then you can easily filter, the lines start with Order No. on any Posted Shipment or Invoice Headers, now look for their lines and filter based on Item No. and Qty from one Line table to another.

    Extras:

    May below image will help to know SO Posting process..... 

    Posting-SO-Detail.png

  • Community Member Profile Picture
    on at

    Hi Tabrez,

    thank you for you answer ;)

    I understand your way and I like your idea.

    Unfortunately I also post an order with the same quantity to ship. So let's say 20, then again 20 and so on for the same item no. (shipment & invoice).

    How can I find out the correct shipment number here? Somehow I have no way to match the correct shipment to the matching invoice in this case, since they are all the same. Maybe the timestamp?

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

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 675 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 665 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans