Table of Contents

Table "Assembly Line"

ID 901
Namespace: Microsoft.Assembly.Document

Properties

Name Value
Caption Assembly Line
DrillDownPageID Page Microsoft.Assembly.Document."Assembly Lines"
LookupPageID Page Microsoft.Assembly.Document."Assembly Lines"
DataClassification CustomerContent

Fields

Name Type Description
"Document Type" Enum Microsoft.Assembly.Document."Assembly Document Type"

Specifies the type of assembly document that the assembly order header represents in assemble-to-order scenarios.

"Document No." Code[20]

Specifies the number of the assembly order header that the assembly order line refers to.

"Line No." Integer
Type Enum Microsoft.Inventory.BOM."BOM Component Type"

Specifies if the assembly order line is of type Item or Resource.

"No." Code[20]

Specifies the number of the involved entry or record, according to the specified number series.

"Variant Code" Code[10]

Specifies the variant of the item on the line.

Description Text[100]

Specifies the description of the assembly component.

"Description 2" Text[50]

Specifies the second description of the assembly component.

"Lead-Time Offset" DateFormula

Specifies the lead-time offset that is defined for the assembly component on the assembly BOM.

"Resource Usage Type" Option

Specifies how the cost of the resource on the assembly order line is allocated to the assembly item.

"Location Code" Code[10]

Specifies the location from which you want to post consumption of the assembly component.

"Shortcut Dimension 1 Code" Code[20]

Specifies the code for Shortcut Dimension 1, which is one of two global dimension codes that you set up in the General Ledger Setup window.

"Shortcut Dimension 2 Code" Code[20]

Specifies the code for Shortcut Dimension 2, which is one of two global dimension codes that you set up in the General Ledger Setup window.

"Bin Code" Code[20]

Specifies the code of the bin where assembly components must be placed prior to assembly and from where they are posted as consumed.

Position Code[10]
"Position 2" Code[10]
"Position 3" Code[10]
"Appl.-to Item Entry" Integer

Specifies the number of the item ledger entry that the document or journal line is applied to.

"Appl.-from Item Entry" Integer

Specifies the number of the item ledger entry that the document or journal line is applied from.

Quantity Decimal

Specifies how many units of the assembly component are expected to be consumed.

"Quantity (Base)" Decimal
"Remaining Quantity" Decimal

Specifies how many units of the assembly component remain to be consumed during assembly.

"Remaining Quantity (Base)" Decimal
"Consumed Quantity" Decimal

Specifies how many units of the assembly component have been posted as consumed during the assembly.

"Consumed Quantity (Base)" Decimal
"Quantity to Consume" Decimal

Specifies how many units of the assembly component you want to post as consumed when you post the assembly order.

"Quantity to Consume (Base)" Decimal
"Reserved Quantity" Decimal

Specifies how many units of the assembly component have been reserved for this assembly order line.

"Reserved Qty. (Base)" Decimal
"Avail. Warning" Boolean

Specifies Yes if the assembly component is not available in the quantity and on the due date of the assembly order line.

"Substitution Available" Boolean

Specifies if a substitute is available for the item on the assembly order line.

"Due Date" Date

Specifies the date when the assembly component must be available for consumption by the assembly order.

Reserve Enum Microsoft.Inventory.Tracking."Reserve Method"

Specifies the reserve option for the assembly order line.

"Quantity per" Decimal

Specifies how many units of the assembly component are required to assemble one assembly item.

"Qty. per Unit of Measure" Decimal

Specifies the quantity per unit of measure of the component item on the assembly order line.

"Inventory Posting Group" Code[20]

Specifies links between business transactions made for the item and an inventory account in the general ledger, to group amounts for that item type.

"Gen. Prod. Posting Group" Code[20]
"Gen. Bus. Posting Group" Code[20]

Specifies the code for the General Business Posting Group that applies to the entry.

"Unit Cost" Decimal

Specifies the cost of one unit of the item or resource on the line.

"Cost Amount" Decimal

Specifies the cost of the assembly order line.

"Date Filter" Date
"Unit of Measure Code" Code[10]

Specifies how each unit of the item or resource is measured, such as in pieces or hours. By default, the value in the Base Unit of Measure field on the item or resource card is inserted.

"Qty. Rounding Precision" Decimal
"Qty. Rounding Precision (Base)" Decimal
"Dimension Set ID" Integer
"Pick Qty." Decimal

Specifies how many units of the assembly component are currently on warehouse pick lines.

"Pick Qty. (Base)" Decimal
"Qty. Picked" Decimal

Specifies how many units of the assembly component have been moved or picked for the assembly order line.

"Qty. Picked (Base)" Decimal
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

InitRemainingQty

procedure InitRemainingQty()

InitQtyToConsume

procedure InitQtyToConsume()

MaxQtyToConsume

procedure MaxQtyToConsume(): Decimal

Returns

Type Description
Decimal

GetUnitCost

procedure GetUnitCost(): Decimal

Returns

Type Description
Decimal

CalcCostAmount

procedure CalcCostAmount(Qty: Decimal; UnitCost: Decimal): Decimal

Parameters

Name Type Description
Qty Decimal
UnitCost Decimal

Returns

Type Description
Decimal

ShowReservation

procedure ShowReservation()

ShowReservationEntries

procedure ShowReservationEntries(Modal: Boolean)

Parameters

Name Type Description
Modal Boolean

UpdateAvailWarning

procedure UpdateAvailWarning(): Boolean

Returns

Type Description
Boolean

CheckItemAvailable

procedure CheckItemAvailable(CalledByFieldNo: Integer)

Parameters

Name Type Description
CalledByFieldNo Integer

ShowAvailabilityWarningPage

procedure ShowAvailabilityWarningPage()

CalcBaseQty

procedure CalcBaseQty(Qty: Decimal; FromFieldName: Text; ToFieldName: Text): Decimal

Parameters

Name Type Description
Qty Decimal
FromFieldName Text
ToFieldName Text

Returns

Type Description
Decimal

IsInbound

procedure IsInbound(): Boolean

Returns

Type Description
Boolean

OpenItemTrackingLines

procedure OpenItemTrackingLines()

AutoReserve

procedure AutoReserve()

ReservationStatus

procedure ReservationStatus(): Integer

Returns

Type Description
Integer

SetTestReservationDateConflict

procedure SetTestReservationDateConflict(NewTestReservationDateConflict: Boolean)

Parameters

Name Type Description
NewTestReservationDateConflict Boolean

GetHeader

procedure GetHeader(): Record "Assembly Header"

Returns

Type Description
Table Microsoft.Assembly.Document."Assembly Header"

GetRemainingQty

procedure GetRemainingQty(var RemainingQty: Decimal; var RemainingQtyBase: Decimal)

Parameters

Name Type Description
RemainingQty Decimal
RemainingQtyBase Decimal

GetReservationQty

procedure GetReservationQty(var QtyReserved: Decimal; var QtyReservedBase: Decimal; var QtyToReserve: Decimal; var QtyToReserveBase: Decimal): Decimal

Parameters

Name Type Description
QtyReserved Decimal
QtyReservedBase Decimal
QtyToReserve Decimal
QtyToReserveBase Decimal

Returns

Type Description
Decimal

GetSourceCaption

procedure GetSourceCaption(): Text[80]

Returns

Type Description
Text[80]

SetReservationEntry

procedure SetReservationEntry(var ReservEntry: Record "Reservation Entry")

Parameters

Name Type Description
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"

SetReservationFilters

procedure SetReservationFilters(var ReservEntry: Record "Reservation Entry")

Parameters

Name Type Description
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"

ReservEntryExist

procedure ReservEntryExist(): Boolean

Returns

Type Description
Boolean

ShowDimensions

procedure ShowDimensions()

CreateDim

procedure CreateDim(DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; HeaderDimensionSetID: Integer)

Parameters

Name Type Description
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]
HeaderDimensionSetID Integer

UpdateDim

procedure UpdateDim(NewHeaderSetID: Integer; OldHeaderSetID: Integer)

Parameters

Name Type Description
NewHeaderSetID Integer
OldHeaderSetID Integer

ValidateShortcutDimCode

procedure ValidateShortcutDimCode(FieldNumber: Integer; var ShortcutDimCode: Code[20])

Parameters

Name Type Description
FieldNumber Integer
ShortcutDimCode Code[20]

ShowShortcutDimCode

procedure ShowShortcutDimCode(var ShortcutDimCode: array[8] of Code[20])

Parameters

Name Type Description
ShortcutDimCode array[8] of Code[20]

ShowItemSub

procedure ShowItemSub()

ShowAssemblyList

procedure ShowAssemblyList()

ExplodeAssemblyList

procedure ExplodeAssemblyList()

CalcQuantityPer

procedure CalcQuantityPer(Qty: Decimal): Decimal

Parameters

Name Type Description
Qty Decimal

Returns

Type Description
Decimal

CalcBOMQuantity

procedure CalcBOMQuantity(LineType: Enum "BOM Component Type"; QtyPer: Decimal; HeaderQty: Decimal; HeaderQtyPerUOM: Decimal; LineResourceUsageType: Option): Decimal

Parameters

Name Type Description
LineType Enum Microsoft.Inventory.BOM."BOM Component Type"
QtyPer Decimal
HeaderQty Decimal
HeaderQtyPerUOM Decimal
LineResourceUsageType Option

Returns

Type Description
Decimal

SetItemToPlanFilters

procedure SetItemToPlanFilters(var Item: Record Item; DocumentType: Enum "Assembly Document Type")

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
DocumentType Enum Microsoft.Assembly.Document."Assembly Document Type"

FindItemToPlanLines

procedure FindItemToPlanLines(var Item: Record Item; DocumentType: Enum "Assembly Document Type"): Boolean

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
DocumentType Enum Microsoft.Assembly.Document."Assembly Document Type"

Returns

Type Description
Boolean

ItemToPlanLinesExist

procedure ItemToPlanLinesExist(var Item: Record Item; DocumentType: Enum "Assembly Document Type"): Boolean

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
DocumentType Enum Microsoft.Assembly.Document."Assembly Document Type"

Returns

Type Description
Boolean

FilterLinesForReservation

procedure FilterLinesForReservation(ReservationEntry: Record "Reservation Entry"; DocumentType: Option; AvailabilityFilter: Text; Positive: Boolean)

Parameters

Name Type Description
ReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
DocumentType Option
AvailabilityFilter Text
Positive Boolean

SetItemFilter

procedure SetItemFilter(var Item: Record Item)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item

CalcAvailToAssemble

procedure CalcAvailToAssemble(AssemblyHeader: Record "Assembly Header"; var Item: Record Item; var GrossRequirement: Decimal; var ScheduledReceipt: Decimal; var ExpectedInventory: Decimal; var AvailableInventory: Decimal; var EarliestDate: Date; var AbleToAssemble: Decimal)

Parameters

Name Type Description
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
Item Table Microsoft.Inventory.Item.Item
GrossRequirement Decimal
ScheduledReceipt Decimal
ExpectedInventory Decimal
AvailableInventory Decimal
EarliestDate Date
AbleToAssemble Decimal

RoundQty

procedure RoundQty(var Qty: Decimal)

Parameters

Name Type Description
Qty Decimal

FixedUsage

procedure FixedUsage(): Boolean

Returns

Type Description
Boolean

SignedXX

procedure SignedXX(Value: Decimal): Decimal

Parameters

Name Type Description
Value Decimal

Returns

Type Description
Decimal

RowID1

procedure RowID1(): Text[250]

Returns

Type Description
Text[250]

GetDefaultBin

procedure GetDefaultBin()

FindBin

procedure FindBin(): Code[20]

Returns

Type Description
Code[20]

TestStatusOpen

procedure TestStatusOpen()

SuspendStatusCheck

procedure SuspendStatusCheck(Suspend: Boolean)

Parameters

Name Type Description
Suspend Boolean

CompletelyPicked

procedure CompletelyPicked(): Boolean

Returns

Type Description
Boolean

CalcQtyToPick

procedure CalcQtyToPick(): Decimal

Returns

Type Description
Decimal

CalcQtyToPickBase

procedure CalcQtyToPickBase(): Decimal

Returns

Type Description
Decimal

CalcQtyPickedNotConsumed

procedure CalcQtyPickedNotConsumed(): Decimal

Returns

Type Description
Decimal

CalcQtyPickedNotConsumedBase

procedure CalcQtyPickedNotConsumedBase(): Decimal

Returns

Type Description
Decimal

ItemExists

procedure ItemExists(ItemNo: Code[20]): Boolean

Parameters

Name Type Description
ItemNo Code[20]

Returns

Type Description
Boolean

ShowTracking

procedure ShowTracking()

VerifyReservationQuantity

procedure VerifyReservationQuantity(var NewAsmLine: Record "Assembly Line"; var OldAsmLine: Record "Assembly Line")

Parameters

Name Type Description
NewAsmLine Table Microsoft.Assembly.Document."Assembly Line"
OldAsmLine Table Microsoft.Assembly.Document."Assembly Line"

VerifyReservationChange

procedure VerifyReservationChange(var NewAsmLine: Record "Assembly Line"; var OldAsmLine: Record "Assembly Line")

Parameters

Name Type Description
NewAsmLine Table Microsoft.Assembly.Document."Assembly Line"
OldAsmLine Table Microsoft.Assembly.Document."Assembly Line"

VerifyReservationDateConflict

procedure VerifyReservationDateConflict(NewAsmLine: Record "Assembly Line")

Parameters

Name Type Description
NewAsmLine Table Microsoft.Assembly.Document."Assembly Line"

SetSkipVerificationsThatChangeDatabase

procedure SetSkipVerificationsThatChangeDatabase(State: Boolean)

Parameters

Name Type Description
State Boolean

GetSkipVerificationsThatChangeDatabase

procedure GetSkipVerificationsThatChangeDatabase(): Boolean

Returns

Type Description
Boolean

ValidateDueDate

procedure ValidateDueDate(AsmHeader: Record "Assembly Header"; NewDueDate: Date; ShowDueDateBeforeWorkDateMsg: Boolean)

Parameters

Name Type Description
AsmHeader Table Microsoft.Assembly.Document."Assembly Header"
NewDueDate Date
ShowDueDateBeforeWorkDateMsg Boolean

ValidateLeadTimeOffset

procedure ValidateLeadTimeOffset(AsmHeader: Record "Assembly Header"; NewLeadTimeOffset: DateFormula; ShowDueDateBeforeWorkDateMsg: Boolean)

Parameters

Name Type Description
AsmHeader Table Microsoft.Assembly.Document."Assembly Header"
NewLeadTimeOffset DateFormula
ShowDueDateBeforeWorkDateMsg Boolean

TestItemFields

procedure TestItemFields(ItemNo: Code[20]; VariantCode: Code[10]; LocationCode: Code[10])

Parameters

Name Type Description
ItemNo Code[20]
VariantCode Code[10]
LocationCode Code[10]

IsInventoriableItem

procedure IsInventoriableItem(): Boolean

Returns

Type Description
Boolean

CreateDimFromDefaultDim

procedure CreateDimFromDefaultDim(HeaderDimensionSetID: Integer)

Parameters

Name Type Description
HeaderDimensionSetID Integer

SetAssemblyHeader

procedure SetAssemblyHeader(NewAssemblyHeader: Record "Assembly Header")

Parameters

Name Type Description
NewAssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"

CheckIfAssemblyLineMeetsReservedFromStockSetting

procedure CheckIfAssemblyLineMeetsReservedFromStockSetting(QtyToPost: Decimal; ReservedFromStock: Enum "Reservation From Stock"): Boolean

Parameters

Name Type Description
QtyToPost Decimal
ReservedFromStock Enum Microsoft.Inventory.Tracking."Reservation From Stock"

Returns

Type Description
Boolean

SuspendDeletionCheck

procedure SuspendDeletionCheck(Suspend: Boolean)

Parameters

Name Type Description
Suspend Boolean

GetSuspendDeletionCheck

procedure GetSuspendDeletionCheck(): Boolean

Returns

Type Description
Boolean

ReserveFromInventory

procedure ReserveFromInventory(var AssemblyLine: Record "Assembly Line")

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"

UpdateAndPersistAvailWarning

procedure UpdateAndPersistAvailWarning()

Events

OnAfterInitDefaultDimensionSources

[IntegrationEvent(False,False)]
local procedure OnAfterInitDefaultDimensionSources(var AssemblyLine: Record "Assembly Line"; var DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]

OnAfterCalcExpectedInventory

[IntegrationEvent(False,False)]
local procedure OnAfterCalcExpectedInventory(var AssemblyLine: Record "Assembly Line"; var Item: Record Item; var ExpectedInventory: Decimal; AvailableInventory: Decimal; ScheduledReceipt: Decimal; ReservedReceipt: Decimal; GrossRequirement: Decimal; ReservedRequirement: Decimal)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
Item Table Microsoft.Inventory.Item.Item
ExpectedInventory Decimal
AvailableInventory Decimal
ScheduledReceipt Decimal
ReservedReceipt Decimal
GrossRequirement Decimal
ReservedRequirement Decimal

OnAfterCopyFromItem

[IntegrationEvent(False,False)]
local procedure OnAfterCopyFromItem(var AssemblyLine: Record "Assembly Line"; Item: Record Item; AssemblyHeader: Record "Assembly Header")

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
Item Table Microsoft.Inventory.Item.Item
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"

OnAfterCopyFromResource

[IntegrationEvent(False,False)]
local procedure OnAfterCopyFromResource(var AssemblyLine: Record "Assembly Line"; Resource: Record Resource; AssemblyHeader: Record "Assembly Header")

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
Resource Table Microsoft.Projects.Resources.Resource.Resource
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"

OnAfterFilterLinesWithItemToPlan

[IntegrationEvent(False,False)]
local procedure OnAfterFilterLinesWithItemToPlan(var AssemblyLine: Record "Assembly Line"; Item: Record Item; DocumentType: Option)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
Item Table Microsoft.Inventory.Item.Item
DocumentType Option

OnAfterCreateDim

[IntegrationEvent(False,False)]
local procedure OnAfterCreateDim(var AssemblyLine: Record "Assembly Line"; DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; HeaderDimensionSetID: Integer)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]
HeaderDimensionSetID Integer

OnAfterFilterLinesForReservation

[IntegrationEvent(False,False)]
local procedure OnAfterFilterLinesForReservation(var AssemblyLine: Record "Assembly Line"; ReservEntry: Record "Reservation Entry"; DocumentType: Option; AvailabilityFilter: Text; Positive: Boolean)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
DocumentType Option
AvailabilityFilter Text
Positive Boolean

OnAfterGetSKU

[IntegrationEvent(False,False)]
local procedure OnAfterGetSKU(AssemblyLine: Record "Assembly Line"; var Result: Boolean)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
Result Boolean

OnAfterGetUnitCost

[IntegrationEvent(False,False)]
local procedure OnAfterGetUnitCost(var AssemblyLine: Record "Assembly Line"; var UnitCost: Decimal)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
UnitCost Decimal

OnAfterInitRemainingQty

[IntegrationEvent(False,False)]
local procedure OnAfterInitRemainingQty(var AssemblyLine: Record "Assembly Line"; xAssemblyLine: Record "Assembly Line"; CurrentFieldNo: Integer)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
xAssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
CurrentFieldNo Integer

OnAfterInitQtyToConsume

[IntegrationEvent(False,False)]
local procedure OnAfterInitQtyToConsume(var AssemblyLine: Record "Assembly Line"; xAssemblyLine: Record "Assembly Line"; CurrentFieldNo: Integer)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
xAssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
CurrentFieldNo Integer

OnAfterMaxQtyToConsume

[IntegrationEvent(False,False)]
local procedure OnAfterMaxQtyToConsume(var AssemblyLine: Record "Assembly Line"; var MaxQuantityToConsume: Decimal)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
MaxQuantityToConsume Decimal

OnAfterMaxQtyToConsumeBase

[IntegrationEvent(False,False)]
local procedure OnAfterMaxQtyToConsumeBase(var AssemblyLine: Record "Assembly Line"; var MaxQuantityToConsumeBase: Decimal)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
MaxQuantityToConsumeBase Decimal

OnAfterSetReservationFilters

[IntegrationEvent(False,False)]
local procedure OnAfterSetReservationFilters(var ReservEntry: Record "Reservation Entry"; AssemblyLine: Record "Assembly Line")

Parameters

Name Type Description
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"

OnAfterShowDimensions

[IntegrationEvent(False,False)]
local procedure OnAfterShowDimensions(var AssemblyLine: Record "Assembly Line")

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"

OnAfterUpdateDim

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateDim(var AssemblyLine: Record "Assembly Line")

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"

OnAfterValidateShortcutDimCode

[IntegrationEvent(False,False)]
local procedure OnAfterValidateShortcutDimCode(var AssemblyLine: Record "Assembly Line"; var xAssemblyLine: Record "Assembly Line"; FieldNumber: Integer; var ShortcutDimCode: Code[20])

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
xAssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
FieldNumber Integer
ShortcutDimCode Code[20]

OnBeforeAutoReserve

[IntegrationEvent(False,False)]
local procedure OnBeforeAutoReserve(var AssemblyLine: Record "Assembly Line"; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
IsHandled Boolean

OnBeforeCalcQtyToPick

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcQtyToPick(var AssemblyLine: Record "Assembly Line"; var QtyToPick: Decimal; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
QtyToPick Decimal
IsHandled Boolean

OnBeforeCalcQtyToPickBase

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcQtyToPickBase(var AssemblyLine: Record "Assembly Line"; var QtyToPickBase: Decimal; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
QtyToPickBase Decimal
IsHandled Boolean

OnBeforeGetHeader

[IntegrationEvent(False,False)]
local procedure OnBeforeGetHeader(var AssemblyLine: Record "Assembly Line"; var AssemblyHeader: Record "Assembly Header"; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"
IsHandled Boolean

OnBeforeGetItemResource

[IntegrationEvent(False,False)]
local procedure OnBeforeGetItemResource(AssemblyLine: Record "Assembly Line"; var Item: Record Item; var Resource: Record Resource; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
Item Table Microsoft.Inventory.Item.Item
Resource Table Microsoft.Projects.Resources.Resource.Resource
IsHandled Boolean

OnBeforeFindBin

[IntegrationEvent(False,False)]
local procedure OnBeforeFindBin(var AssemblyLine: Record "Assembly Line"; var NewBinCode: Code[20]; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
NewBinCode Code[20]
IsHandled Boolean

OnBeforeInitQtyToConsume

[IntegrationEvent(False,False)]
local procedure OnBeforeInitQtyToConsume(var AssemblyLine: Record "Assembly Line"; xAssemblyLine: Record "Assembly Line"; CurrentFieldNo: Integer)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
xAssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
CurrentFieldNo Integer

OnBeforeOpenItemTrackingLines

[IntegrationEvent(False,False)]
local procedure OnBeforeOpenItemTrackingLines(var AssemblyLine: Record "Assembly Line"; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
IsHandled Boolean

OnBeforeValidateShortcutDimCode

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateShortcutDimCode(var AssemblyLine: Record "Assembly Line"; var xAssemblyLine: Record "Assembly Line"; FieldNumber: Integer; var ShortcutDimCode: Code[20])

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
xAssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
FieldNumber Integer
ShortcutDimCode Code[20]

OnBeforeValidateQuantityBase

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateQuantityBase(var AssemblyLine: Record "Assembly Line"; var xAssemblyLine: Record "Assembly Line"; FieldNumber: Integer; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
xAssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
FieldNumber Integer
IsHandled Boolean

OnBeforeValidateQuantityPer

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateQuantityPer(var AssemblyLine: Record "Assembly Line"; xAssemblyLine: Record "Assembly Line"; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
xAssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
IsHandled Boolean

OnBeforeCheckItemAvailable

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckItemAvailable(var AssemblyLine: Record "Assembly Line"; CalledByFieldNo: Integer; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
CalledByFieldNo Integer
IsHandled Boolean

OnBeforeCalcAvailQuantities

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcAvailQuantities(var AssemblyLine: Record "Assembly Line")

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"

OnBeforeCalcAvailBaseQuantities

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcAvailBaseQuantities(var AssemblyLine: Record "Assembly Line"; var Item: Record Item; var AvailableInventory: Decimal; var ScheduledReceipt: Decimal; var ReservedReceipt: Decimal; var ReservedRequirement: Decimal; var GrossRequirement: Decimal; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
Item Table Microsoft.Inventory.Item.Item
AvailableInventory Decimal
ScheduledReceipt Decimal
ReservedReceipt Decimal
ReservedRequirement Decimal
GrossRequirement Decimal
IsHandled Boolean

OnBeforeCopyFromItem

[IntegrationEvent(False,False)]
local procedure OnBeforeCopyFromItem(var AssemblyLine: Record "Assembly Line")

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"

OnBeforeCopyFromResource

[IntegrationEvent(False,False)]
local procedure OnBeforeCopyFromResource(var AssemblyLine: Record "Assembly Line")

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"

OnBeforeShowReservation

[IntegrationEvent(False,False)]
local procedure OnBeforeShowReservation(var AssemblyLine: Record "Assembly Line"; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
IsHandled Boolean

OnBeforeUpdateAvailWarning

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateAvailWarning(var AssemblyLine: Record "Assembly Line"; var Result: Boolean; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
Result Boolean
IsHandled Boolean

OnBeforeValidateDueDate

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateDueDate(var AsmLine: Record "Assembly Line"; AsmHeader: Record "Assembly Header"; NewDueDate: Date; var ShowDueDateBeforeWorkDateMsg: Boolean)

Parameters

Name Type Description
AsmLine Table Microsoft.Assembly.Document."Assembly Line"
AsmHeader Table Microsoft.Assembly.Document."Assembly Header"
NewDueDate Date
ShowDueDateBeforeWorkDateMsg Boolean

OnValidateQuantityOnAfterCalcBaseQty

[IntegrationEvent(False,False)]
local procedure OnValidateQuantityOnAfterCalcBaseQty(var AssemblyLine: Record "Assembly Line"; xAssemblyLine: Record "Assembly Line"; CurrentFieldNo: Integer)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
xAssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
CurrentFieldNo Integer

OnValidateQuantityPerOnAfterRoundQty

[IntegrationEvent(False,False)]
local procedure OnValidateQuantityPerOnAfterRoundQty(var AssemblyLine: Record "Assembly Line")

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"

OnValidateApplToItemEntryOnBeforeShowNotOpenItemLedgerEntryMessage

[IntegrationEvent(False,False)]
local procedure OnValidateApplToItemEntryOnBeforeShowNotOpenItemLedgerEntryMessage(var AssemblyLine: Record "Assembly Line"; xAssemblyLine: Record "Assembly Line"; var ItemLedgerEntry: Record "Item Ledger Entry"; CurrentFieldNo: Integer)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
xAssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
CurrentFieldNo Integer

OnBeforeValidateQuantitytoConsume

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateQuantitytoConsume(var AssemblyLine: Record "Assembly Line"; xAssemblyLine: Record "Assembly Line"; CurrFieldNo: Integer; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
xAssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
CurrFieldNo Integer
IsHandled Boolean

OnBeforeInitTableValuePair

[IntegrationEvent(False,False)]
local procedure OnBeforeInitTableValuePair(var TableValuePair: Dictionary of [Integer, Code[20]]; FieldNo: Integer; var IsHandled: Boolean; var AssemblyLine: Record "Assembly Line")

Parameters

Name Type Description
TableValuePair Dictionary of [Integer, Code[20]]
FieldNo Integer
IsHandled Boolean
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"

OnAfterInitTableValuePair

[IntegrationEvent(False,False)]
local procedure OnAfterInitTableValuePair(var TableValuePair: Dictionary of [Integer, Code[20]]; FieldNo: Integer; var AssemblyLine: Record "Assembly Line")

Parameters

Name Type Description
TableValuePair Dictionary of [Integer, Code[20]]
FieldNo Integer
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"

OnAfterFindBin

[IntegrationEvent(False,False)]
local procedure OnAfterFindBin(var AssemblyLine: Record "Assembly Line"; var NewBinCode: Code[20])

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
NewBinCode Code[20]

OnBeforeCalcBOMQuantity

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcBOMQuantity(var AssemblyLine: Record "Assembly Line"; LineType: Enum "BOM Component Type"; QtyPer: Decimal; HeaderQty: Decimal; HeaderQtyPerUOM: Decimal; LineResourceUsageType: Option; var ReturnBOMQuantity: Decimal; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
LineType Enum Microsoft.Inventory.BOM."BOM Component Type"
QtyPer Decimal
HeaderQty Decimal
HeaderQtyPerUOM Decimal
LineResourceUsageType Option
ReturnBOMQuantity Decimal
IsHandled Boolean

OnBeforeCreateDim

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateDim(var AssemblyLine: Record "Assembly Line"; CallingFieldNo: Integer; DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; HeaderDimensionSetID: Integer; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
CallingFieldNo Integer
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]
HeaderDimensionSetID Integer
IsHandled Boolean

OnCheckIfAssemblyLineMeetsReservedFromStockSetting

[IntegrationEvent(False,False)]
local procedure OnCheckIfAssemblyLineMeetsReservedFromStockSetting(QtyToPost: Decimal; ReservedFromStock: Enum "Reservation From Stock"; var Result: Boolean)

Parameters

Name Type Description
QtyToPost Decimal
ReservedFromStock Enum Microsoft.Inventory.Tracking."Reservation From Stock"
Result Boolean

OnBeforeSetQtyPerUoMAndQtyRoundingPrecision

[IntegrationEvent(False,False)]
local procedure OnBeforeSetQtyPerUoMAndQtyRoundingPrecision(var AssemblyLine: Record "Assembly Line"; var IsHandled: Boolean)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
IsHandled Boolean

OnValidateVariantCodeOnUpdateDescriptionsFromItem

[IntegrationEvent(False,False)]
local procedure OnValidateVariantCodeOnUpdateDescriptionsFromItem(var AssemblyLine: Record "Assembly Line"; Item: Record Item)

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
Item Table Microsoft.Inventory.Item.Item

OnValidateVariantCodeOnUpdateDescriptionsFromVariantCode

[IntegrationEvent(False,False)]
local procedure OnValidateVariantCodeOnUpdateDescriptionsFromVariantCode(var AssemblyLine: Record "Assembly Line"; ItemVariant: Record "Item Variant")

Parameters

Name Type Description
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"
ItemVariant Table Microsoft.Inventory.Item."Item Variant"

See also