Share via


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]
Code Code[10]
"Qty. per Unit of Measure" Decimal
"Qty. Rounding Precision" Decimal
"Coupled to Dataverse" Boolean
Length Decimal
Width Decimal
Height Decimal
Cubage Decimal
Weight Decimal
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

CalcWeight

procedure CalcWeight()

TestItemSetup

procedure TestItemSetup()

CheckNoEntriesWithUoM

procedure CheckNoEntriesWithUoM()

GetCannotModifyUnitOfMeasureErr

procedure GetCannotModifyUnitOfMeasureErr(): Text

Returns

Type Description
Text

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

OnBeforeCheckNoRemQtyProdOrderLine

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Item Integration

[Obsolete(Moved to codeunit Mfg. Item Integration,26.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckNoRemQtyProdOrderLine(ItemUnitOfMeasure: Record "Item Unit of Measure", xItemUnitOfMeasure: Record "Item Unit of Measure", var ProdOrderLine: Record "Prod. Order 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"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
IsHandled Boolean

OnBeforeCheckNoRemQtyProdOrderComponent

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit Mfg. Inventory Integration

[Obsolete(Moved to codeunit Mfg. Inventory Integration,26.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckNoRemQtyProdOrderComponent(ItemUnitOfMeasure: Record "Item Unit of Measure", xItemUnitOfMeasure: Record "Item Unit of Measure", var ProdOrderComponent: Record "Prod. Order Component", 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"
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
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

OnBeforeCheckNoOutstandingQtyServiceLine

Obsolete

This element will become obsolete from version 25.0. Moved to codeunit Serv. Item Unit of Measure

[Obsolete(Moved to codeunit Serv. Item Unit of Measure,25.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckNoOutstandingQtyServiceLine(ItemUnitOfMeasure: Record "Item Unit of Measure", xItemUnitOfMeasure: Record "Item Unit of Measure", var ServiceLine: Record "Service 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"
ServiceLine Table Microsoft.Service.Document."Service 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