Codeunit 5407 Prod. Order Status Management

Base Application, Microsoft.Manufacturing.Document

Source AL, 2,075 lines

src/Layers/W1/BaseApp/Manufacturing/Document/ProdOrderStatusManagement.Codeunit.allines 32 to 47 of 2,075, Copyright (c) Microsoft Corporation. MIT

codeunit 5407 "Prod. Order Status Management"{    Permissions = TableData "Source Code Setup" = r,                  TableData Item = m,                  TableData "Production Order" = rimd,                  TableData "Prod. Order Capacity Need" = rid,                  TableData "Inventory Adjmt. Entry (Order)" = rim;    TableNo = "Production Order";    trigger OnRun()    var        ChangeStatusForm: Page "Change Status on Prod. Order";        IsHandled: Boolean;    begin        IsHandled := false;        OnBeforeOnRun(ChangeStatusForm, Rec, IsHandled, NewStatus, NewPostingDate, NewUpdateUnitCost);

All 2,075 lines

Events 74 in 29

[IntegrationEvent] OnAfterInitItemJnlLineFromProdOrderComp(var ItemJournalLine: Record "Item Journal Line"; ProductionOrder: Record "Production Order"; ProdOrderLine: Record "Prod. Order Line"; ProdOrderComponent: Record "Prod. Order Component")17-29
[IntegrationEvent] OnAfterInitItemJnlLineFromProdOrderLine(var ItemJournalLine: Record "Item Journal Line"; ProductionOrder: Record "Production Order"; ProdOrderLine: Record "Prod. Order Line"; ProdOrderRoutingLine: Record "Prod. Order Routing Line")17-29
[IntegrationEvent] OnAfterInsertProdOrderLine(var ToProdOrderLine: Record "Prod. Order Line"; FromProdOrderLine: Record "Prod. Order Line")17-29
[IntegrationEvent] OnAfterTransProdOrder(var FromProdOrder: Record "Production Order"; var ToProdOrder: Record "Production Order")17-29
[IntegrationEvent] OnAfterTransProdOrderLines(var FromProdOrder: Record "Production Order"; var ToProdOrder: Record "Production Order")17-29
[IntegrationEvent] OnAfterTransProdOrderComp(var FromProdOrder: Record "Production Order"; var ToProdOrder: Record "Production Order")17-29
[IntegrationEvent] OnAfterToProdOrderLineModify(var ToProdOrderLine: Record "Prod. Order Line"; var FromProdOrderLine: Record "Prod. Order Line"; var NewStatus: Option Quote,Planned,"Firm Planned",Released,Finished)17-29

All 86 events in 17-29

Public procedures 13 in 29

ChangeProdOrderStatus(ProdOrder: Record "Production Order"; NewStatus: Enum "Production Order Status"; NewPostingDate: Date; NewUpdateUnitCost: Boolean)17-29
FlushProdOrder(ProdOrder: Record "Production Order"; NewStatus: Enum "Production Order Status"; PostingDate: Date)17-29
SetPostingInfo(Status: Enum "Production Order Status"; PostingDate: Date; UpdateUnitCost: Boolean)17-29
TransProdOrder(var FromProdOrder: Record "Production Order")new in 20
OutputExists(ProdOrderLine: Record "Prod. Order Line"): Booleannew in 21
MatrOrCapConsumpExists(ProdOrderLine: Record "Prod. Order Line"): Booleannew in 21

All 15 procedures in 17-29

Changes 1 in 29

List17181920212223242526272829
Procedures34311
Events198126211543
ProcessProdOrderForReopen(var ProdOrder: Record "Production Order")new in 29
added

All 73 changes in 17-29