Codeunit "Mfg. Item Substitution"

ID 99000898
Namespace: Microsoft.Inventory.Item.Substitution

Methods

GetProdOrderCompSubst

procedure GetProdOrderCompSubst(var ProdOrderComp: Record "Prod. Order Component")

Parameters

Name Type Description
ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"

UpdateProdOrderComp

procedure UpdateProdOrderComp(var ProdOrderComp: Record "Prod. Order Component", SubstItemNo: Code[20], SubstVariantCode: Code[10])

Parameters

Name Type Description
ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"
SubstItemNo Code[20]
SubstVariantCode Code[10]

Events

OnGetCompSubstOnAfterCheckPrepareSubstList

[IntegrationEvent(False,False)]
local procedure OnGetCompSubstOnAfterCheckPrepareSubstList(var ProdOrderComp: Record "Prod. Order Component", var TempItemSubstitution: Record "Item Substitution" temporary, var Item: Record Item, var GrossReq: Decimal, var SchedRcpt: Decimal)

Parameters

Name Type Description
ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"
TempItemSubstitution Table Microsoft.Inventory.Item.Substitution."Item Substitution"
Item Table Microsoft.Inventory.Item.Item
GrossReq Decimal
SchedRcpt Decimal

OnAfterGetCompSubst

[IntegrationEvent(False,False)]
local procedure OnAfterGetCompSubst(var ProdOrderComp: Record "Prod. Order Component", var TempItemSubstitution: Record "Item Substitution" temporary)

Parameters

Name Type Description
ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"
TempItemSubstitution Table Microsoft.Inventory.Item.Substitution."Item Substitution"

OnBeforeUpdateComponent

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateComponent(var ProdOrderComp: Record "Prod. Order Component", SubstItemNo: Code[20], SubstVariantCode: Code[10], var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"
SubstItemNo Code[20]
SubstVariantCode Code[10]
IsHandled Boolean

OnAfterUpdateComponentBeforeAssign

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateComponentBeforeAssign(var ProdOrderComp: Record "Prod. Order Component", var TempProdOrderComp: Record "Prod. Order Component" temporary)

Parameters

Name Type Description
ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"
TempProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"

See also