Skip to main content

Notifications

Business Central forum
Suggested answer

Add a new column on Item Ledger Entries

Posted on by 50

In Item Ledger Entries, the Quantity column converts the amount from invoices according to the Base Unit of Measure set in the Item Card. Add a new column in Item Ledger Entries to display the converted Quantity according to the Sales Unit of Measure specified in the Item Card.
Can you help me with this code

Categories:
  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,744 Moderator on at
    RE: Add a new column on Item Ledger Entries

    I think this code should do it for you:

    var
            Item: Record Item;
            ItemUnitOfMeasure: Record "Item Unit of Measure";
            Sassia: Decimal;
        begin
            Item.Get(rec."Item No.");
            If ItemUnitOfMeasure.Get(Item."No.", rec."Unit of Measure Code") then
                Sassia := rec.Quantity / ItemUnitOfMeasure."Qty. per Unit of Measure" else Sassia := rec.Quantity * rec."Qty. per Unit of Measure";
    
        end;

  • Reni Profile Picture
    Reni 50 on at
    RE: Add a new column on Item Ledger Entries

    yes

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,744 Moderator on at
    RE: Add a new column on Item Ledger Entries

    Your repeat loop will not do anything in this case.

    Do you want to handle all the Item Unit of Measures used of only the default sales UOM as it shows on your item card?

  • Reni Profile Picture
    Reni 50 on at
    RE: Add a new column on Item Ledger Entries

    pastedimage1663851885884v1.png

  • Suggested answer
    Amit Baru Profile Picture
    Amit Baru 3,025 on at
    RE: Add a new column on Item Ledger Entries

    Hi,

    Pls use the below link

    https://erpconsultors.com/update-item-ledger-entry-fields-at-the-time-of-purchase-receipt-posting/

    Regards

    Amit Sharma

    www.erpconsultors.com

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 58,874 Super User 2024 Season 2 on at
    RE: Add a new column on Item Ledger Entries

    Please share the code that you have tried.

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

Dynamics 365 Community Update – Sep 16th

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

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,522 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,441 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans