Table "Item Unit of Measure"
ID 5404
Namespace: Microsoft.Inventory.Item
Properties
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
TestItemSetup
procedure TestItemSetup()
CheckNoEntriesWithUoM
procedure CheckNoEntriesWithUoM()
GetCannotModifyUnitOfMeasureErr
procedure GetCannotModifyUnitOfMeasureErr(): Text
Returns
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
OnAfterCalcWeight
[IntegrationEvent(False,False)]
local procedure OnAfterCalcWeight(var ItemUnitOfMeasure: Record "Item Unit of Measure")
Parameters
OnAfterTestItemSetup
[IntegrationEvent(False,False)]
local procedure OnAfterTestItemSetup(var Rec: Record "Item Unit of Measure"; xRec: Record "Item Unit of Measure")
Parameters
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
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
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
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
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
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
OnBeforeCheckQtyPerUoMPrecision
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckQtyPerUoMPrecision(ItemUnitofMeasure: Record "Item Unit of Measure"; BaseRoundingPrecision: Decimal; var IsHandled: Boolean)
Parameters
OnBeforeTestNoWhseAdjmtEntriesExist
[IntegrationEvent(False,False)]
local procedure OnBeforeTestNoWhseAdjmtEntriesExist(ItemUnitOfMeasure: Record "Item Unit of Measure"; var IsHandled: Boolean)
Parameters
OnAfterCheckNoOutstandingQty
[IntegrationEvent(False,False)]
local procedure OnAfterCheckNoOutstandingQty(ItemUnitOfMeasure: Record "Item Unit of Measure"; xItemUnitOfMeasure: Record "Item Unit of Measure")
Parameters
See also