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 ;)

  • Community Member Profile Picture
    on at
    RE: What is the connection between invoice and shipment?

    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?

  • Suggested answer
    Tabrez Ajaz Profile Picture
    785 on at
    RE: What is the connection between invoice and shipment?

    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

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 Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

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

#1
YUN ZHU Profile Picture

YUN ZHU 628 Super User 2025 Season 1

#2
Mansi Soni Profile Picture

Mansi Soni 495

#3
Sagar Dangar, MCP Profile Picture

Sagar Dangar, MCP 395

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans