Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

Report layout - working with Lot and expiry

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

  • Jakob123 Profile Picture
    Jakob123 10 on at
    RE: Report layout - working with Lot and expiry

    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

  • Suggested answer
    Amit Baru Profile Picture
    Amit Baru 3,025 on at
    RE: Report layout - working with Lot and expiry

    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
    Jakob123 10 on at
    RE: Report layout - working with Lot and expiry

    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
    Amit Baru 3,025 on at
    RE: Report layout - working with Lot and expiry

    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.

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,564 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,651 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans