Codeunit "Prod. Order Status Management"

ID 5407
Namespace: Microsoft.Manufacturing.Document

Properties

Name Value
Permissions TableData "Source Code Setup" = r, TableData "Production Order" = rimd, TableData "Prod. Order Capacity Need" = rid, TableData "Inventory Adjmt. Entry (Order)" = rim
TableNo Table Microsoft.Manufacturing.Document."Production Order"

Methods

ChangeProdOrderStatus

procedure ChangeProdOrderStatus(ProdOrder: Record "Production Order", NewStatus: Enum "Production Order Status", NewPostingDate: Date, NewUpdateUnitCost: Boolean)

Parameters

Name Type Description
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"
NewStatus Enum Microsoft.Manufacturing.Document."Production Order Status"
NewPostingDate Date
NewUpdateUnitCost Boolean

ReopenFinishedProdOrder

procedure ReopenFinishedProdOrder(var ProdOrder: Record "Production Order")

Parameters

Name Type Description
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"

SetFinishOrderWithoutOutput

procedure SetFinishOrderWithoutOutput(NewFinishOrderWithoutOutput: Boolean)

Parameters

Name Type Description
NewFinishOrderWithoutOutput Boolean

TransProdOrder

procedure TransProdOrder(var FromProdOrder: Record "Production Order")

Parameters

Name Type Description
FromProdOrder Table Microsoft.Manufacturing.Document."Production Order"

FlushProdOrder

procedure FlushProdOrder(ProdOrder: Record "Production Order", NewStatus: Enum "Production Order Status", PostingDate: Date)

Parameters

Name Type Description
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"
NewStatus Enum Microsoft.Manufacturing.Document."Production Order Status"
PostingDate Date

SetPostingInfo

procedure SetPostingInfo(Status: Enum "Production Order Status", PostingDate: Date, UpdateUnitCost: Boolean)

Parameters

Name Type Description
Status Enum Microsoft.Manufacturing.Document."Production Order Status"
PostingDate Date
UpdateUnitCost Boolean

OutputExists

procedure OutputExists(ProdOrderLine: Record "Prod. Order Line"): Boolean

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"

Returns

Type Description
Boolean

MatrOrCapConsumpExists

procedure MatrOrCapConsumpExists(ProdOrderLine: Record "Prod. Order Line"): Boolean

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"

Returns

Type Description
Boolean

SetTimeAndQuantityOmItemJnlLine

procedure SetTimeAndQuantityOmItemJnlLine(var ItemJnlLine: Record "Item Journal Line", ProdOrderRtngLine: Record "Prod. Order Routing Line", OutputQtyBase: Decimal, OutputQty: Decimal, PutawayQtyBaseToCalc: Decimal)

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
ProdOrderRtngLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"
OutputQtyBase Decimal
OutputQty Decimal
PutawayQtyBaseToCalc Decimal

ChangeProdOrderStatus

procedure ChangeProdOrderStatus(ProdOrder: Record "Production Order", var NewProdOrder: Record "Production Order", NewStatus: Enum "Production Order Status", NewPostingDate: Date, NewUpdateUnitCost: Boolean)

Parameters

Name Type Description
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"
NewProdOrder Table Microsoft.Manufacturing.Document."Production Order"
NewStatus Enum Microsoft.Manufacturing.Document."Production Order Status"
NewPostingDate Date
NewUpdateUnitCost Boolean

ChangeStatusWithSelectionFilter

[ErrorBehavior(Collect)]
procedure ChangeStatusWithSelectionFilter(var ProductionOrder: Record "Production Order")

Parameters

Name Type Description
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"

Events

OnAfterInitItemJnlLineFromProdOrderComp

[IntegrationEvent(False,False)]
local procedure OnAfterInitItemJnlLineFromProdOrderComp(var ItemJournalLine: Record "Item Journal Line", ProductionOrder: Record "Production Order", ProdOrderLine: Record "Prod. Order Line", ProdOrderComponent: Record "Prod. Order Component")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"

OnAfterInitItemJnlLineFromProdOrderLine

[IntegrationEvent(False,False)]
local procedure OnAfterInitItemJnlLineFromProdOrderLine(var ItemJournalLine: Record "Item Journal Line", ProductionOrder: Record "Production Order", ProdOrderLine: Record "Prod. Order Line", ProdOrderRoutingLine: Record "Prod. Order Routing Line")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ProdOrderRoutingLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"

OnAfterInsertProdOrderLine

[IntegrationEvent(False,False)]
local procedure OnAfterInsertProdOrderLine(var ToProdOrderLine: Record "Prod. Order Line", FromProdOrderLine: Record "Prod. Order Line")

Parameters

Name Type Description
ToProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
FromProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"

OnAfterSetTimeAndQuantityOmItemJnlLine

[IntegrationEvent(False,False)]
local procedure OnAfterSetTimeAndQuantityOmItemJnlLine(var ItemJournalLine: Record "Item Journal Line", ProdOrderRoutingLine: Record "Prod. Order Routing Line", OutputQtyBase: Decimal, OutputQty: Decimal)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ProdOrderRoutingLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"
OutputQtyBase Decimal
OutputQty Decimal

OnAfterTransProdOrder

[IntegrationEvent(False,False)]
local procedure OnAfterTransProdOrder(var FromProdOrder: Record "Production Order", var ToProdOrder: Record "Production Order")

Parameters

Name Type Description
FromProdOrder Table Microsoft.Manufacturing.Document."Production Order"
ToProdOrder Table Microsoft.Manufacturing.Document."Production Order"

OnAfterTransProdOrderLines

[IntegrationEvent(False,False)]
local procedure OnAfterTransProdOrderLines(var FromProdOrder: Record "Production Order", var ToProdOrder: Record "Production Order")

Parameters

Name Type Description
FromProdOrder Table Microsoft.Manufacturing.Document."Production Order"
ToProdOrder Table Microsoft.Manufacturing.Document."Production Order"

OnAfterTransProdOrderComp

[IntegrationEvent(False,False)]
local procedure OnAfterTransProdOrderComp(var FromProdOrder: Record "Production Order", var ToProdOrder: Record "Production Order")

Parameters

Name Type Description
FromProdOrder Table Microsoft.Manufacturing.Document."Production Order"
ToProdOrder Table Microsoft.Manufacturing.Document."Production Order"

OnAfterToProdOrderLineModify

[IntegrationEvent(False,False)]
local procedure OnAfterToProdOrderLineModify(var ToProdOrderLine: Record "Prod. Order Line", var FromProdOrderLine: Record "Prod. Order Line", var NewStatus: Option)

Parameters

Name Type Description
ToProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
FromProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
NewStatus Option

OnAfterToProdOrderRtngLineInsert

[IntegrationEvent(False,False)]
local procedure OnAfterToProdOrderRtngLineInsert(var ToProdOrderRoutingLine: Record "Prod. Order Routing Line", var FromProdOrderRoutingLine: Record "Prod. Order Routing Line")

Parameters

Name Type Description
ToProdOrderRoutingLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"
FromProdOrderRoutingLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"

OnAfterCalculateQtyToPost

[IntegrationEvent(False,False)]
local procedure OnAfterCalculateQtyToPost(ProdOrderComponent: Record "Prod. Order Component", var QtyToPost: Decimal, ProdOrder: Record "Production Order", NewStatus: Enum "Production Order Status")

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
QtyToPost Decimal
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"
NewStatus Enum Microsoft.Manufacturing.Document."Production Order Status"

OnAfterChangeStatusOnProdOrder

[IntegrationEvent(False,False)]
local procedure OnAfterChangeStatusOnProdOrder(var ProdOrder: Record "Production Order", var ToProdOrder: Record "Production Order", NewStatus: Enum "Production Order Status", NewPostingDate: Date, NewUpdateUnitCost: Boolean, var SuppressCommit: Boolean)

Parameters

Name Type Description
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"
ToProdOrder Table Microsoft.Manufacturing.Document."Production Order"
NewStatus Enum Microsoft.Manufacturing.Document."Production Order Status"
NewPostingDate Date
NewUpdateUnitCost Boolean
SuppressCommit Boolean

OnAfterUpdateGlobalDim

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateGlobalDim(var ItemJournalLine: Record "Item Journal Line", ProdOrderRoutingLine: Record "Prod. Order Routing Line", ProdOrderLine: Record "Prod. Order Line")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ProdOrderRoutingLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"

OnBeforeChangeStatusOnProdOrder

[IntegrationEvent(False,False)]
local procedure OnBeforeChangeStatusOnProdOrder(var ProductionOrder: Record "Production Order", NewStatus: Option, var IsHandled: Boolean, NewPostingDate: Date, NewUpdateUnitCost: Boolean)

Parameters

Name Type Description
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
NewStatus Option
IsHandled Boolean
NewPostingDate Date
NewUpdateUnitCost Boolean

OnBeforeCheckBeforeFinishProdOrder

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckBeforeFinishProdOrder(var ProductionOrder: Record "Production Order", var IsHandled: Boolean)

Parameters

Name Type Description
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
IsHandled Boolean

OnBeforeOnRun

[IntegrationEvent(False,False)]
local procedure OnBeforeOnRun(var ChangeStatusOnProdOrderPage: Page "Change Status on Prod. Order", var ProductionOrder: Record "Production Order", var IsHandled: Boolean, NewStatus: Enum "Production Order Status", NewPostingDate: Date, NewUpdateUnitCost: Boolean)

Parameters

Name Type Description
ChangeStatusOnProdOrderPage Page Microsoft.Manufacturing.Document."Change Status on Prod. Order"
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
IsHandled Boolean
NewStatus Enum Microsoft.Manufacturing.Document."Production Order Status"
NewPostingDate Date
NewUpdateUnitCost Boolean

OnBeforeFlushProdOrder

[IntegrationEvent(False,False)]
local procedure OnBeforeFlushProdOrder(var ProductionOrder: Record "Production Order", NewStatus: Enum "Production Order Status", PostingDate: Date, var IsHandled: Boolean)

Parameters

Name Type Description
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
NewStatus Enum Microsoft.Manufacturing.Document."Production Order Status"
PostingDate Date
IsHandled Boolean

OnBeforeInsertProdOrderLine

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertProdOrderLine(var ToProdOrderLine: Record "Prod. Order Line", FromProdOrderLine: Record "Prod. Order Line")

Parameters

Name Type Description
ToProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
FromProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"

OnBeforeMakeMultiLevelAdjmt

[IntegrationEvent(False,False)]
local procedure OnBeforeMakeMultiLevelAdjmt(var ProductionOrder: Record "Production Order", var IsHandled: Boolean)

Parameters

Name Type Description
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
IsHandled Boolean

OnBeforePostFlushItemJnlLine

[IntegrationEvent(False,False)]
local procedure OnBeforePostFlushItemJnlLine(var ItemJournalLine: Record "Item Journal Line", var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
IsHandled Boolean

OnBeforeTransProdOrderRtngCmtLn

[IntegrationEvent(False,False)]
local procedure OnBeforeTransProdOrderRtngCmtLn(FromProductionOrder: Record "Production Order", ToProductionOrder: Record "Production Order", var IsHandled: Boolean)

Parameters

Name Type Description
FromProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
ToProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
IsHandled Boolean

OnBeforeTransProdOrderCmtLine

[IntegrationEvent(False,False)]
local procedure OnBeforeTransProdOrderCmtLine(FromProductionOrder: Record "Production Order", ToProductionOrder: Record "Production Order", var IsHandled: Boolean)

Parameters

Name Type Description
FromProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
ToProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
IsHandled Boolean

OnBeforeTransProdOrderBOMCmtLine

[IntegrationEvent(False,False)]
local procedure OnBeforeTransProdOrderBOMCmtLine(FromProductionOrder: Record "Production Order", ToProductionOrder: Record "Production Order", var IsHandled: Boolean)

Parameters

Name Type Description
FromProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
ToProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
IsHandled Boolean

OnBeforeTransferLinks

[IntegrationEvent(False,False)]
local procedure OnBeforeTransferLinks(FromProdOrder: Record "Production Order", ToProdOrder: Record "Production Order", var IsHandled: Boolean)

Parameters

Name Type Description
FromProdOrder Table Microsoft.Manufacturing.Document."Production Order"
ToProdOrder Table Microsoft.Manufacturing.Document."Production Order"
IsHandled Boolean

OnBeforeRoundQtyToPost

[IntegrationEvent(False,False)]
local procedure OnBeforeRoundQtyToPost(ProdOrderComponent: Record "Prod. Order Component", var QtyToPost: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
QtyToPost Decimal
IsHandled Boolean

OnBeforeMatrOrCapConsumpExists

[IntegrationEvent(False,False)]
local procedure OnBeforeMatrOrCapConsumpExists(ProdOrderLine: Record "Prod. Order Line", var EntriesExist: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
EntriesExist Boolean
IsHandled Boolean

OnChangeProdOrderStatusOnBeforeTransProdOrder

[IntegrationEvent(False,False)]
local procedure OnChangeProdOrderStatusOnBeforeTransProdOrder(var ProdOrder: Record "Production Order", NewStatus: Enum "Production Order Status")

Parameters

Name Type Description
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"
NewStatus Enum Microsoft.Manufacturing.Document."Production Order Status"

OnCheckMissingConsumption

[IntegrationEvent(False,False)]
local procedure OnCheckMissingConsumption(var ProductionOrder: Record "Production Order", var ProdOrderLine: Record "Prod. Order Line", var ProdOrderRoutingLine: Record "Prod. Order Routing Line", var ShowWarning: Boolean)

Parameters

Name Type Description
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ProdOrderRoutingLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"
ShowWarning Boolean

OnCheckMissingOutput

[IntegrationEvent(False,False)]
local procedure OnCheckMissingOutput(var ProductionOrder: Record "Production Order", var ProdOrderLine: Record "Prod. Order Line", var ProdOrderRoutingLine: Record "Prod. Order Routing Line", var ShowWarning: Boolean)

Parameters

Name Type Description
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ProdOrderRoutingLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"
ShowWarning Boolean

OnCheckBeforeFinishProdOrderOnAfterSetProdOrderCompFilters

[IntegrationEvent(False,False)]
local procedure OnCheckBeforeFinishProdOrderOnAfterSetProdOrderCompFilters(var ProdOrderComp: Record "Prod. Order Component", ProductionOrder: Record "Production Order", var PurchaseLine: Record "Purchase Line")

Parameters

Name Type Description
ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"

OnCheckBeforeFinishProdOrderOnAfterCheckProdOrder

[IntegrationEvent(False,False)]
local procedure OnCheckBeforeFinishProdOrderOnAfterCheckProdOrder(var ProdOrder: Record "Production Order")

Parameters

Name Type Description
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"

OnCopyFromProdOrder

[IntegrationEvent(False,False)]
local procedure OnCopyFromProdOrder(var ToProdOrder: Record "Production Order", FromProdOrder: Record "Production Order")

Parameters

Name Type Description
ToProdOrder Table Microsoft.Manufacturing.Document."Production Order"
FromProdOrder Table Microsoft.Manufacturing.Document."Production Order"

OnCopyFromProdOrderLine

[IntegrationEvent(False,False)]
local procedure OnCopyFromProdOrderLine(var ToProdOrderLine: Record "Prod. Order Line", FromProdOrderLine: Record "Prod. Order Line")

Parameters

Name Type Description
ToProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
FromProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"

OnCopyFromProdOrderRoutingLine

[IntegrationEvent(False,False)]
local procedure OnCopyFromProdOrderRoutingLine(var ToProdOrderRoutingLine: Record "Prod. Order Routing Line", FromProdOrderRoutingLine: Record "Prod. Order Routing Line", NewPostingDate: Date)

Parameters

Name Type Description
ToProdOrderRoutingLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"
FromProdOrderRoutingLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"
NewPostingDate Date

OnCopyFromProdOrderComp

[IntegrationEvent(False,False)]
local procedure OnCopyFromProdOrderComp(var ToProdOrderComp: Record "Prod. Order Component", var FromProdOrderComp: Record "Prod. Order Component")

Parameters

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

OnCopyFromProdOrderCapacityNeed

[IntegrationEvent(False,False)]
local procedure OnCopyFromProdOrderCapacityNeed(var ToProdOrderCapacityNeed: Record "Prod. Order Capacity Need", FromProdOrderCapacityNeed: Record "Prod. Order Capacity Need")

Parameters

Name Type Description
ToProdOrderCapacityNeed Table Microsoft.Manufacturing.Document."Prod. Order Capacity Need"
FromProdOrderCapacityNeed Table Microsoft.Manufacturing.Document."Prod. Order Capacity Need"

OnFlushProdOrderOnAfterFindProdOrderRtngLine

[IntegrationEvent(False,False)]
local procedure OnFlushProdOrderOnAfterFindProdOrderRtngLine(var ProdOrderRoutingLine: Record "Prod. Order Routing Line", var IsLastOperation: Boolean)

Parameters

Name Type Description
ProdOrderRoutingLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"
IsLastOperation Boolean

OnFlushProdOrderOnAfterPostFlushItemJnlLine

[IntegrationEvent(False,False)]
local procedure OnFlushProdOrderOnAfterPostFlushItemJnlLine(var ItemJnlLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnFlushProdOrderOnAfterProdOrderCompSetFilters

[IntegrationEvent(False,False)]
local procedure OnFlushProdOrderOnAfterProdOrderCompSetFilters(ProdOrder: Record "Production Order", var ProdOrderComponent: Record "Prod. Order Component")

Parameters

Name Type Description
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"

OnFlushProdOrderOnAfterProdOrderLineLoopIteration

[IntegrationEvent(False,False)]
local procedure OnFlushProdOrderOnAfterProdOrderLineLoopIteration(var ProdOrderLine: Record "Prod. Order Line", NewStatus: Enum "Production Order Status", PostingDate: Date)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
NewStatus Enum Microsoft.Manufacturing.Document."Production Order Status"
PostingDate Date

OnFlushProdOrderOnBeforeCopyItemTracking

[IntegrationEvent(False,False)]
local procedure OnFlushProdOrderOnBeforeCopyItemTracking(var ItemJournalLine: Record "Item Journal Line", ProdOrderComponent: Record "Prod. Order Component", Item: Record Item)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
Item Table Microsoft.Inventory.Item.Item

OnFlushProdOrderProcessProdOrderRtngLineOnAfterCalcOutputQty

[IntegrationEvent(False,False)]
local procedure OnFlushProdOrderProcessProdOrderRtngLineOnAfterCalcOutputQty(ProdOrderLine: Record "Prod. Order Line", ProdOrderRoutingLine: Record "Prod. Order Routing Line", var OutputQty: Decimal, var OutputQtyBase: Decimal)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ProdOrderRoutingLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"
OutputQty Decimal
OutputQtyBase Decimal

OnBeforeFlushProdOrderProcessProdOrderRtngLine

[IntegrationEvent(False,False)]
local procedure OnBeforeFlushProdOrderProcessProdOrderRtngLine(var ProdOrderLine: Record "Prod. Order Line", var ProdOrderRoutingLine: Record "Prod. Order Routing Line", PostingDate: Date, var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ProdOrderRoutingLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"
PostingDate Date
IsHandled Boolean

OnInitItemJnlLineFromProdOrderCompOnAfterInit

[IntegrationEvent(False,False)]
local procedure OnInitItemJnlLineFromProdOrderCompOnAfterInit(var ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnInitItemJnlLineFromProdOrderLineOnAfterInit

[IntegrationEvent(False,False)]
local procedure OnInitItemJnlLineFromProdOrderLineOnAfterInit(var ItemJournalLine: Record "Item Journal Line")

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnTransProdOrderCompOnAfterToProdOrderCompInsert

[IntegrationEvent(False,False)]
local procedure OnTransProdOrderCompOnAfterToProdOrderCompInsert(var FromProdOrderComp: Record "Prod. Order Component", var ToProdOrderComp: Record "Prod. Order Component")

Parameters

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

OnTransProdOrderCompOnBeforeToProdOrderCompInsert

[IntegrationEvent(False,False)]
local procedure OnTransProdOrderCompOnBeforeToProdOrderCompInsert(var FromProdOrderComp: Record "Prod. Order Component", var ToProdOrderComp: Record "Prod. Order Component")

Parameters

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

OnTransProdOrderLineOnBeforeFinishedInvtAdjmtEntryOrderModify

[IntegrationEvent(False,False)]
local procedure OnTransProdOrderLineOnBeforeFinishedInvtAdjmtEntryOrderModify(var InventoryAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)", FromProdOrderLine: Record "Prod. Order Line", var ToProdOrderLine: Record "Prod. Order Line", ToProductionOrder: Record "Production Order")

Parameters

Name Type Description
InventoryAdjmtEntryOrder Table Microsoft.Inventory.Costing."Inventory Adjmt. Entry (Order)"
FromProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ToProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ToProductionOrder Table Microsoft.Manufacturing.Document."Production Order"

OnTransProdOrderLineOnBeforeTransferPOLineToPOLine

[IntegrationEvent(False,False)]
local procedure OnTransProdOrderLineOnBeforeTransferPOLineToPOLine(FromProdOrderLine: Record "Prod. Order Line", var ToProdOrderLine: Record "Prod. Order Line", NewStatus: Enum "Production Order Status")

Parameters

Name Type Description
FromProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ToProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
NewStatus Enum Microsoft.Manufacturing.Document."Production Order Status"

OnTransProdOrderCapNeedOnBeforeDeleteAll

[IntegrationEvent(False,False)]
local procedure OnTransProdOrderCapNeedOnBeforeDeleteAll(var ProdOrder: Record "Production Order", var ProdOrderCapacityNeed: Record "Prod. Order Capacity Need", var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"
ProdOrderCapacityNeed Table Microsoft.Manufacturing.Document."Prod. Order Capacity Need"
IsHandled Boolean

OnAfterSetProdOrderCompFilters

[IntegrationEvent(False,False)]
local procedure OnAfterSetProdOrderCompFilters(var ProdOrderComponent: Record "Prod. Order Component", ProductionOrder: Record "Production Order")

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"

OnErrorIfUnableToClearWIPOnBeforeError

[IntegrationEvent(False,False)]
local procedure OnErrorIfUnableToClearWIPOnBeforeError(ProdOrderLine: Record "Prod. Order Line", var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
IsHandled Boolean

OnRunOnAfterChangeStatusFormRun

[IntegrationEvent(False,False)]
local procedure OnRunOnAfterChangeStatusFormRun(var ProductionOrder: Record "Production Order")

Parameters

Name Type Description
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"

OnTransProdOrderOnBeforeToProdOrderInsert

[IntegrationEvent(False,False)]
local procedure OnTransProdOrderOnBeforeToProdOrderInsert(var ToProdOrder: Record "Production Order", FromProdOrder: Record "Production Order", NewPostingDate: Date)

Parameters

Name Type Description
ToProdOrder Table Microsoft.Manufacturing.Document."Production Order"
FromProdOrder Table Microsoft.Manufacturing.Document."Production Order"
NewPostingDate Date

OnBeforeShowStatusMessage

[IntegrationEvent(False,False)]
local procedure OnBeforeShowStatusMessage(ProdOrder: Record "Production Order", ToProdOrder: Record "Production Order", var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"
ToProdOrder Table Microsoft.Manufacturing.Document."Production Order"
IsHandled Boolean

OnTransProdOrderLineOnAfterDeleteReservEntries

[IntegrationEvent(False,False)]
local procedure OnTransProdOrderLineOnAfterDeleteReservEntries(FromProdOrderLine: Record "Prod. Order Line", var ToProdOrderLine: Record "Prod. Order Line", var NewStatus: Enum "Production Order Status")

Parameters

Name Type Description
FromProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ToProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
NewStatus Enum Microsoft.Manufacturing.Document."Production Order Status"

OnTransProdOrderOnAfterStatusIsReleased

[IntegrationEvent(False,False)]
local procedure OnTransProdOrderOnAfterStatusIsReleased(var ToProdOrder: Record "Production Order", FromProdOrder: Record "Production Order")

Parameters

Name Type Description
ToProdOrder Table Microsoft.Manufacturing.Document."Production Order"
FromProdOrder Table Microsoft.Manufacturing.Document."Production Order"

OnBeforeTransProdOrder

[IntegrationEvent(False,False)]
local procedure OnBeforeTransProdOrder(var FromProdOrder: Record "Production Order", Status: Enum "Production Order Status")

Parameters

Name Type Description
FromProdOrder Table Microsoft.Manufacturing.Document."Production Order"
Status Enum Microsoft.Manufacturing.Document."Production Order Status"

OnTransProdOrderLineOnBeforeFromProdOrderLineLoop

[IntegrationEvent(False,False)]
local procedure OnTransProdOrderLineOnBeforeFromProdOrderLineLoop(FromProdOrderLine: Record "Prod. Order Line", var ToProdOrderLine: Record "Prod. Order Line", NewStatus: Enum "Production Order Status", var IsHandled: Boolean, ToProductionOrder: Record "Production Order")

Parameters

Name Type Description
FromProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ToProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
NewStatus Enum Microsoft.Manufacturing.Document."Production Order Status"
IsHandled Boolean
ToProductionOrder Table Microsoft.Manufacturing.Document."Production Order"

OnTransProdOrderLineOnAfterFromProdOrderLineFindSet

[IntegrationEvent(False,False)]
local procedure OnTransProdOrderLineOnAfterFromProdOrderLineFindSet(FromProdOrderLine: Record "Prod. Order Line", var ToProdOrderLine: Record "Prod. Order Line", NewStatus: Enum "Production Order Status")

Parameters

Name Type Description
FromProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ToProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
NewStatus Enum Microsoft.Manufacturing.Document."Production Order Status"

OnChangeProdOrderStatusOnBeforeDeleteDocReservation

[IntegrationEvent(False,False)]
local procedure OnChangeProdOrderStatusOnBeforeDeleteDocReservation(ProdOrder: Record "Production Order", var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"
IsHandled Boolean

OnAfterFlushProdOrderProcessProdOrderRtngLine

[IntegrationEvent(False,False)]
local procedure OnAfterFlushProdOrderProcessProdOrderRtngLine(ProdOrder: Record "Production Order", ProdOrderLine: Record "Prod. Order Line", ProdOrderRtngLine: Record "Prod. Order Routing Line", NewStatus: Option, PostingDate: Date)

Parameters

Name Type Description
ProdOrder Table Microsoft.Manufacturing.Document."Production Order"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ProdOrderRtngLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"
NewStatus Option
PostingDate Date

OnAfterRoundQtyToPost

[IntegrationEvent(False,False)]
local procedure OnAfterRoundQtyToPost(ProdOrderComp: Record "Prod. Order Component", QtyToPost: Decimal)

Parameters

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

OnCheckBeforeFinishProdOrderOnBeforeFindSet

[IntegrationEvent(False,False)]
local procedure OnCheckBeforeFinishProdOrderOnBeforeFindSet(var ProdOrderLine: Record "Prod. Order Line", var ProdOrderRtngLine: Record "Prod. Order Routing Line", var ShowWarning: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ProdOrderRtngLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"
ShowWarning Boolean
IsHandled Boolean

OnTransferLinksOnBeforeCopyLinks

[IntegrationEvent(False,False)]
local procedure OnTransferLinksOnBeforeCopyLinks(var FromProductionOrder: Record "Production Order", var ToProductionOrder: Record "Production Order", var IsHandled: Boolean)

Parameters

Name Type Description
FromProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
ToProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
IsHandled Boolean

OnTransProdOrderLineOnAfterFromProdOrderLineSetFilters

[IntegrationEvent(False,False)]
local procedure OnTransProdOrderLineOnAfterFromProdOrderLineSetFilters(var FromProdOrderLine: Record "Prod. Order Line", var FromProductionOrder: Record "Production Order", NewUpdateUnitCost: Boolean)

Parameters

Name Type Description
FromProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
FromProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
NewUpdateUnitCost Boolean

OnBeforeTransProdOrderComp

[IntegrationEvent(False,False)]
local procedure OnBeforeTransProdOrderComp(FromProdOrder: Record "Production Order", var ToProdOrder: Record "Production Order", var IsHandled: Boolean)

Parameters

Name Type Description
FromProdOrder Table Microsoft.Manufacturing.Document."Production Order"
ToProdOrder Table Microsoft.Manufacturing.Document."Production Order"
IsHandled Boolean

OnErrorIfUnableToClearWIPOnAfterProdOrderLineSetFilters

[IntegrationEvent(False,False)]
local procedure OnErrorIfUnableToClearWIPOnAfterProdOrderLineSetFilters(ProductionOrder: Record "Production Order", var ProdOrderLine: Record "Prod. Order Line")

Parameters

Name Type Description
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"

OnAfterTransferReopenProdOrderLine

[IntegrationEvent(False,False)]
local procedure OnAfterTransferReopenProdOrderLine(ProdOrderLine: Record "Prod. Order Line", FromProdOrderLine: Record "Prod. Order Line")

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
FromProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"

OnAfterTransferRelatedTablesToReleasedProdOrder

[IntegrationEvent(False,False)]
local procedure OnAfterTransferRelatedTablesToReleasedProdOrder(ProductionOrder: Record "Production Order")

Parameters

Name Type Description
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"

OnProcessProdOrderLineForReopenOnBeforeDeleteUpdateProdOrderLine

[IntegrationEvent(False,False)]
local procedure OnProcessProdOrderLineForReopenOnBeforeDeleteUpdateProdOrderLine(ProdOrderLine: Record "Prod. Order Line")

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"

OnAfterTransferReopenProdOrder

[IntegrationEvent(False,False)]
local procedure OnAfterTransferReopenProdOrder(ProductionOrder: Record "Production Order", FromProductionOrder: Record "Production Order")

Parameters

Name Type Description
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"
FromProductionOrder Table Microsoft.Manufacturing.Document."Production Order"

See also