Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Add a new column on Item Ledger Entries

(0) ShareShare
ReportReport
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

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 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,748 Super User 2024 Season 1 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 59,194 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

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