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

Report layout - working with Lot and expiry

(0) ShareShare
ReportReport
Posted on by 10

Hi, 

How is it possible to add lot number and expiry date for each line on sales invoices etc. (template and direct working document), without having to manually update the extended text? 

BR

Jakob

I have the same question (0)
  • Suggested answer
    Amit Baru Profile Picture
    3,043 on at

    Hi,

    Yes, system allow to print Lot and Expiry Sales Line wise in Report. If you want to know the above information then go to the Item Tracking button and see the information.

    Regards

    Amit Sharma

    www.erpconsultors.com

    https://linkedin.com/in/amit-sharma-94542440

    Press Yes If Info is useful.

  • Jakob123 Profile Picture
    10 on at

    Hi Amit, thanks for your reply.

    Did not manage to resolve challenge based on above, do I need to configure the report and add lot and expiry to the XML mapping for modifying report template in word or is there a more simple way?

    BR

    Jakob

  • Suggested answer
    Amit Baru Profile Picture
    3,043 on at

    Hi,

    Pls do the following steps

    First Assign Item Tracking.

    Write code on SalesLine Dataitem OnAfterrecord

    Reservation.reset

    Reservation.setrange("Source ID","Document No.");

    Reservation.setrange((Source Reference Line No.,"Line No.");

    if Reservation.findset then begin

    repeat

       LOTNO := Reservation."Lot No.";

       ExpirayDate := Reservation."Expiry Date"

    until Reservation.next =0;

    end;

    This helpful

    Regards

    Amit Sharma

    www.erpconsultors.com

  • Jakob123 Profile Picture
    10 on at

    Hi Armit, thanks.

    I am assuming this needs to be done in VSC? do I need to edit this in the RDCL layout or where do I need to apply above?

    Item tracking has been assigned (only LOT, no serialization needed for our setup at least). Will above result in new itemdata when you modify in word?

    Thanks

    BR

    Jakob

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 May Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,713 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,032 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 914 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans