Skip to main content

Notifications

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

  • 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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans