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...
Unanswered

Get Quantity Shipped on Sales Line from Sales Invoice Line

(0) ShareShare
ReportReport
Posted on by 5

When posting a sales order, I am trying to store the Quantity, Quantity Shipped and Quantity Remaining (Quantity - Quantity Shipped) on the lines of the shipment and invoice that are created from the posting process.

I have no trouble getting this working on the shipment lines using a simple OnBeforeInsert in a table extension for the "Sales Shipment Line" table.

I am having an issue with this on the Sales Invoice Lines but only when they user does a "Ship & Invoice" in a single action. 

I have trawled through the source code of Code Unit 80 "Sales-Post" and can see there is a lot of buffering so when I try to get the "Qty Shipped" from the Sales Order Line in relation to the current Sales Invoice Line, the sales order line record hasn't actually been updated yet.

Can anyone offer a suggestion as to where I might be able to hook into this process?

The reason I am doing this is my customer wants to see back order quantities (remaining quantities) for each line on the sales shipment and sales invoice reports.

I have the same question (0)
  • Bryan Tschosik Profile Picture
    Microsoft Employee on at
    Hi  - We currently do not have dedicated Dev support via the NAV/Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    https://www.yammer.com/dynamicsnavdev#/home
    https://dynamicsuser.net/nav/f/developers
    https://mibuso.com/

    I will open this up to the community in case they have something to add.

    Thank you,
    Bryan

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,497 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,778 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,507

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans