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

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 3,229

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,867 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans