How can I print Lot Numbers and Serial Numbers in NAV 2016 Sales Invoices?

We had customized Report 10074 - Sales Invoice - to be able to print the Lot and/or Serial Numbers, using the RetrieveILEFromPostedInv function from Codeunit 6500 - Item Tracking Management.

However, it seems that the RetrieveILEFromPostedInv function has disappeared from the Codeunit in NAV 2016.

Is there another way to extract those precious numbers?


Hi Ricardo,

The way NAV handles both lot and serial numbers has been changed in version 2016. To the better! You can now find them directly on the item ledger entries. But that doesn’t really help you here.

Instead you can use the RetrieveInvoiceSpecification function to retrieve item tracking specifications.