Share via


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"
"Document No." Code[20]
"Line No." Integer
Type Enum Microsoft.Inventory.BOM."BOM Component Type"
"No." Code[20]
"Variant Code" Code[10]
Description Text[100]
"Description 2" Text[50]
"Lead-Time Offset" DateFormula
"Resource Usage Type" Option
"Location Code" Code[10]
"Shortcut Dimension 1 Code" Code[20]
"Shortcut Dimension 2 Code" Code[20]
"Bin Code" Code[20]
Position Code[10]
"Position 2" Code[10]
"Position 3" Code[10]
"Appl.-to Item Entry" Integer
"Appl.-from Item Entry" Integer
Quantity Decimal
"Quantity (Base)" Decimal
"Remaining Quantity" Decimal
"Remaining Quantity (Base)" Decimal
"Consumed Quantity" Decimal
"Consumed Quantity (Base)" Decimal
"Quantity to Consume" Decimal
"Quantity to Consume (Base)" Decimal
"Reserved Quantity" Decimal
"Reserved Qty. (Base)" Decimal
"Avail. Warning" Boolean
"Substitution Available" Boolean
"Due Date" Date
Reserve Enum Microsoft.Inventory.Tracking."Reserve Method"
"Quantity per" Decimal
"Qty. per Unit of Measure" Decimal
"Inventory Posting Group" Code[20]
"Gen. Prod. Posting Group" Code[20]
"Gen. Bus. Posting Group" Code[20]
"Unit Cost" Decimal
"Cost Amount" Decimal
"Date Filter" Date
"Unit of Measure Code" Code[10]
"Qty. Rounding Precision" Decimal
"Qty. Rounding Precision (Base)" Decimal
"Dimension Set ID" Integer
"Pick Qty." Decimal
"Pick Qty. (Base)" Decimal
"Qty. Picked" Decimal
"Qty. Picked (Base)" Decimal
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
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

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

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

See also