Skip to main content

Notifications

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

Procedure for UoM calculation

Posted on by 65

Hello. 

1. Can I calculate Quantity of one Item UoM to another Item UoM using some standard procedure/codeunit? Or i need to do this Calculation manually? 

For example: 

UoM1: 4 per base UoM

UoM2: 2 per base UoM 

And I want to pass to this CU/procedure UoM1, UoM2 code and quantity of UoM1. Finally I want to get as output the Quantity of UoM2 (for example: input 1, output 2)

2. The same question for time calculation. I need to pass to procedure: time UoM1 (example: Days), UoM2 (example: Hours), time value in UoM1. And as output i want to get passed time value in UoM2.

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: Procedure for UoM calculation

    You have this codeunit  5402 "Unit of Measure Management" that codeunit contains a lot of functions helpful for handling unit of measures.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans