Announcements
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
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;
yes
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?
Hi,
Pls use the below link
https://erpconsultors.com/update-item-ledger-entry-fields-at-the-time-of-purchase-receipt-posting/
Regards
Amit Sharma
Please share the code that you have tried.
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156