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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Business Central forum

Shipment Date by Line Item

(0) ShareShare
ReportReport
Posted on by

Is there a way to record a different shipment date for each line item on a sales invoice and get this to print on the invoice?

Categories:
  • Suggested answer
    AJAnsari Profile Picture
    5,754 on at

    Not from a Sales Invoice, but you can from a Sales Order.

    Sales Invoices are typically best for situations where you're either invoicing for a service of some sort, an intangible product that does not need to be shipped, or a product that will be fully shipped and invoiced at the same time.

    If you have the need to ship some products one date, and remaining products on a another date, Sales Orders are what you should be using. Here, each line can have a unique Shipment Date, and you can set the Qty. to Ship for each line, and it can also show you how much of the line has already been shipped (some columns may be hidden by default, and you may need to make them visible by going to Choose Columns).

    You can post a Sales Order in full, or partially (and you can choose to just Ship, Invoice, or Ship and Invoice when you post).

    As for the report, if the Shipment Date from the line does not display on the default layout of the invoice, you can very easily address that by going to Report Layout Selection, finding the invoice report and creating a custom layout utilizing this field.

    I hope this helps!

  • Community Member Profile Picture
    on at

    I entered a Sales Order with two lines.  Each line had a different shipment date.  I posted this order using the ship and invoice option.  When I go into the invoice layout to add in the shipment date, it is pulling the posted date for both lines (not the shipment date I entered).  Is there some other field I need to pull to get this on the invoice report?  I am using report ID 1306.  Custom XML Part:  urn:microsoft-dynamics-nav/Reports/Standard_Sales_Invoice/1306/ and am pulling from Line ShipmentDate_Line field.  Thanks,

  • Verified answer
    AJAnsari Profile Picture
    5,754 on at

    Hi SLee, your post piqued my curiosity to the point where I had to go on a code hunt. :)

    I put in a test transaction in Dynamics 365 for Financials and was able to confirm the behavior you reported. So I decided to test in Dynamics NAV 2017 (which is very closely related to Dynamics 365 for FInancials and shares a lot of common code), and I got the same behavior. Clearly the ShipmentDate_Line expression isn't showing what it is supposed to be showing.

    Thankfully, in Dynamics NAV, we can also look at the underlying report code for Report 1306. Here is what I found: The ShipmentDate_Line expression is calculated through code, and derived from a variable expression 'PostedShipmentDate'. This expression, in turn, is calculated from a function called 'FindPostedShipmentDate'.

    Looking at this function, I see that it checks to see if the line refers to a Shipment No., and if so, it uses that value to locate the associated Sales Shipment Header record, and uses the Posting Date for the Sales Shipment Header.

    More after the screenshots below....

    Ship001.JPG

    Drilling down into the variable expression 'PostedShipmentDate':

    Ship001.JPG

    Drilling down into the local function 'FindPostedShipmentDate':

    Ship002.JPG

    Conclusion:


    This finding validates what you noticed: the ShipmentDate_Line expression is showing the Posting Date (from the related Sales Shipment header).

    This appears to be a bug in the report code (unless there is some specific reason why the Microsoft team is doing this, and this reason is lost on both of us). It can be very easily resolved in Dynamics NAV, but unfortunately, we do not have access to the report object code in Dynamics 365, so there is nothing we can do to remedy this issue, except waiting on a fix. You can submit a support request from your Office 365 Admin Portal to bring it to Microsoft's attention. Feel free to use the screenshots and explanation I've posted here.

    I hope this helps. If my post has answered your question, please take a minute to verify this by clicking Yes next to "Does this response answer your question?"

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans