Table of Contents

Table "Item Unit of Measure"

ID 5404
Namespace: Microsoft.Inventory.Item

Properties

Name Value
Caption Item Unit of Measure
LookupPageID Page Microsoft.Inventory.Item."Item Units of Measure"
DataClassification CustomerContent

Fields

Name Type Description
"Item No." Code[20]

Specifies the number of the item card from which you opened the Item Units of Measure window.

Code Code[10]

Specifies a code to identify the unit of measure.

"Qty. per Unit of Measure" Decimal

Specifies how many of the base unit of measure are contained in one unit of the item.

"Qty. Rounding Precision" Decimal
"Coupled to Dataverse" Boolean

Specifies that the item unit of measure is coupled to a unit of measure in Dynamics 365 Sales.

Length Decimal

Specifies the length of one item unit when measured in the specified unit of measure.

Width Decimal

Specifies the width of one item unit when measured in the specified unit of measure.

Height Decimal

Specifies the height of one item unit when measured in the unit of measure in the Code field.

Cubage Decimal

Specifies the volume (cubage) of one item unit in the unit of measure in the Code field.

Weight Decimal

Specifies the weight of one item unit when measured in the specified unit of measure.

SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemCreatedByUserName Text[50]
SystemCreatedByFullName Text[80]
SystemModifiedByUserName Text[50]
SystemModifiedByFullName Text[80]
SystemRowVersion BigInteger

Methods

CalcWeight

procedure CalcWeight()

TestItemSetup

procedure TestItemSetup()

CheckNoEntriesWithUoM

procedure CheckNoEntriesWithUoM()

GetCannotModifyUnitOfMeasureErr

procedure GetCannotModifyUnitOfMeasureErr(): Text

Returns

Type Description
Text

CalcWeight

procedure CalcWeight(QtyPerUoM: Decimal; NetWeight: Decimal)

Parameters

Name Type Description
QtyPerUoM Decimal
NetWeight Decimal

Events

OnAfterCalcCubage

[IntegrationEvent(False,False)]
local procedure OnAfterCalcCubage(var ItemUnitOfMeasure: Record "Item Unit of Measure")

Parameters

Name Type Description
ItemUnitOfMeasure Table Microsoft.Inventory.Item."Item Unit of Measure"

OnAfterCalcWeight

[IntegrationEvent(False,False)]
local procedure OnAfterCalcWeight(var ItemUnitOfMeasure: Record "Item Unit of Measure")

Parameters

Name Type Description
ItemUnitOfMeasure Table Microsoft.Inventory.Item."Item Unit of Measure"

OnAfterTestItemSetup

[IntegrationEvent(False,False)]
local procedure OnAfterTestItemSetup(var Rec: Record "Item Unit of Measure"; xRec: Record "Item Unit of Measure")

Parameters

Name Type Description
Rec Table Microsoft.Inventory.Item."Item Unit of Measure"
xRec Table Microsoft.Inventory.Item."Item Unit of Measure"

OnBeforeCalcCubage

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcCubage(var ItemUnitOfMeasure: Record "Item Unit of Measure"; var xItemUnitOfMeasure: Record "Item Unit of Measure"; var IsHandled: Boolean)

Parameters

Name Type Description
ItemUnitOfMeasure Table Microsoft.Inventory.Item."Item Unit of Measure"
xItemUnitOfMeasure Table Microsoft.Inventory.Item."Item Unit of Measure"
IsHandled Boolean

OnBeforeCheckNoRemQtyAssemblyLine

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckNoRemQtyAssemblyLine(ItemUnitOfMeasure: Record "Item Unit of Measure"; xItemUnitOfMeasure: Record "Item Unit of Measure"; var AssemblyLine: Record "Assembly Line"; var IsHandled: Boolean)

Parameters

Name Type Description
ItemUnitOfMeasure Table Microsoft.Inventory.Item."Item Unit of Measure"
xItemUnitOfMeasure Table Microsoft.Inventory.Item."Item Unit of Measure"
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
IsHandled Boolean

OnBeforeCheckNoOutstandingQtySalesLine

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckNoOutstandingQtySalesLine(ItemUnitOfMeasure: Record "Item Unit of Measure"; xItemUnitOfMeasure: Record "Item Unit of Measure"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean)

Parameters

Name Type Description
ItemUnitOfMeasure Table Microsoft.Inventory.Item."Item Unit of Measure"
xItemUnitOfMeasure Table Microsoft.Inventory.Item."Item Unit of Measure"
SalesLine Table Microsoft.Sales.Document."Sales Line"
IsHandled Boolean

OnBeforeCheckNoRemQtyAssemblyHeader

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckNoRemQtyAssemblyHeader(ItemUnitOfMeasure: Record "Item Unit of Measure"; xItemUnitOfMeasure: Record "Item Unit of Measure"; var AssemblyHeader: Record "Assembly Header"; var IsHandled: Boolean)

Parameters

Name Type Description
ItemUnitOfMeasure Table Microsoft.Inventory.Item."Item Unit of Measure"
xItemUnitOfMeasure Table Microsoft.Inventory.Item."Item Unit of Measure"
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
IsHandled Boolean

OnBeforeCheckNoOutstandingQtyPurchLine

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckNoOutstandingQtyPurchLine(ItemUnitOfMeasure: Record "Item Unit of Measure"; xItemUnitOfMeasure: Record "Item Unit of Measure"; var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)

Parameters

Name Type Description
ItemUnitOfMeasure Table Microsoft.Inventory.Item."Item Unit of Measure"
xItemUnitOfMeasure Table Microsoft.Inventory.Item."Item Unit of Measure"
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
IsHandled Boolean

OnBeforeCheckNoOutstandingQtyTransferLine

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckNoOutstandingQtyTransferLine(ItemUnitOfMeasure: Record "Item Unit of Measure"; xItemUnitOfMeasure: Record "Item Unit of Measure"; var TransferLine: Record "Transfer Line"; var IsHandled: Boolean)

Parameters

Name Type Description
ItemUnitOfMeasure Table Microsoft.Inventory.Item."Item Unit of Measure"
xItemUnitOfMeasure Table Microsoft.Inventory.Item."Item Unit of Measure"
TransferLine Table Microsoft.Inventory.Transfer."Transfer Line"
IsHandled Boolean

OnBeforeCheckQtyPerUoMPrecision

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckQtyPerUoMPrecision(ItemUnitofMeasure: Record "Item Unit of Measure"; BaseRoundingPrecision: Decimal; var IsHandled: Boolean)

Parameters

Name Type Description
ItemUnitofMeasure Table Microsoft.Inventory.Item."Item Unit of Measure"
BaseRoundingPrecision Decimal
IsHandled Boolean

OnBeforeTestNoWhseAdjmtEntriesExist

[IntegrationEvent(False,False)]
local procedure OnBeforeTestNoWhseAdjmtEntriesExist(ItemUnitOfMeasure: Record "Item Unit of Measure"; var IsHandled: Boolean)

Parameters

Name Type Description
ItemUnitOfMeasure Table Microsoft.Inventory.Item."Item Unit of Measure"
IsHandled Boolean

OnAfterCheckNoOutstandingQty

[IntegrationEvent(False,False)]
local procedure OnAfterCheckNoOutstandingQty(ItemUnitOfMeasure: Record "Item Unit of Measure"; xItemUnitOfMeasure: Record "Item Unit of Measure")

Parameters

Name Type Description
ItemUnitOfMeasure Table Microsoft.Inventory.Item."Item Unit of Measure"
xItemUnitOfMeasure Table Microsoft.Inventory.Item."Item Unit of Measure"

See also