web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
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
    789 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,250 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,799 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,390

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans