Source AL, 269 lines
src/Layers/W1/BaseApp/Foundation/UOM/UnitofMeasureManagement.Codeunit.allines 10 to 25 of 269, Copyright (c) Microsoft Corporation. MIT
codeunit 5402 "Unit of Measure Management"{ SingleInstance = true; trigger OnRun() begin end; var ItemUnitOfMeasure: Record "Item Unit of Measure"; ResourceUnitOfMeasure: Record "Resource Unit of Measure"; QtyPerUnitOfMeasureErr: Label 'Quantity per unit of measure must be defined.'; QuantityImbalanceErr: Label '%1 on %2-%3 causes the %4 and %5 to be out of balance. Rounding of the field %5 results to 0.', Comment = '%1 - field name, %2 - table name, %3 - primary key value, %4 - field name, %5 - field name'; InvalidPrecisionErr: Label 'The value %1 in field %2 is of lower precision than expected. \\Note: Default rounding precision of %3 is used if a rounding precision is not defined.', Comment = '%1 - decimal value, %2 - field name, %3 - default rounding precision.'; QtyImbalanceDetectedErr: Label 'This will cause the quantity and base quantity fields to be out of balance.';
All 269 lines
Events 9 in 29
All 9 events
Public procedures 19 in 29
| GetQtyPerUnitOfMeasure(Item: Record Item; UnitOfMeasureCode: Code[10]): Decimal | 17-29 |
| GetResQtyPerUnitOfMeasure(Resource: Record Resource; UnitOfMeasureCode: Code[10]): Decimal | 17-29 |
| CalcBaseQty(Qty: Decimal; QtyPerUOM: Decimal): Decimal | 17-29 |
| CalcBaseQty(ItemNo: Code[20]; VariantCode: Code[10]; UOMCode: Code[10]; QtyBase: Decimal; QtyPerUOM: Decimal): Decimal | 17-29 |
| CalcQtyFromBase(QtyBase: Decimal; QtyPerUOM: Decimal): Decimal | 17-29 |
| CalcQtyFromBase(ItemNo: Code[20]; VariantCode: Code[10]; UOMCode: Code[10]; QtyBase: Decimal; QtyPerUOM: Decimal): Decimal | 17-29 |
All 19 procedures
Changes 1 in 26
| ValidateQtyIsBalanced(TotalQty: Decimal; TotalQtyBase: Decimal; QtyToHandle: Decimal; QtyToHandleBase: Decimal; QtyHandled: Decimal; QtyHandledBase: Decimal) | new in 19changed in 26 |
| changed, was internal ValidateQtyIsBalanced(TotalQty: Decimal; TotalQtyBase: Decimal; QtyToHandle: Decimal; QtyToHandleBase: Decimal; QtyHandled: Decimal; QtyHandledBase: Decimal) |
All 9 changes in 17-29