Codeunit 99000792 Create Prod. Order from Sale

Base Application, Microsoft.Manufacturing.Document

Source AL, 216 lines

src/Layers/W1/BaseApp/Manufacturing/Document/CreateProdOrderfromSale.Codeunit.allines 13 to 28 of 216, Copyright (c) Microsoft Corporation. MIT

codeunit 99000792 "Create Prod. Order from Sale"{    trigger OnRun()    begin    end;    var        UOMMgt: Codeunit "Unit of Measure Management";        HideValidationDialog: Boolean;#pragma warning disable AA0074#pragma warning disable AA0470        Text000: Label '%1 Prod. Order %2 has been created.';#pragma warning restore AA0470#pragma warning restore AA0074

All 216 lines

Events 11 in 29

[IntegrationEvent] OnAfterCreateProdOrder(var ProdOrder: Record "Production Order"; var SalesLine: Record "Sales Line")17-29
[IntegrationEvent] OnAfterCreateProdOrderFromSalesLine(var ProdOrder: Record "Production Order"; var SalesLine: Record "Sales Line")17-29
[IntegrationEvent] OnBeforeUpdateSalesLineReserve(var SalesLine: Record "Sales Line"; var ProdOrderLine: Record "Prod. Order Line"; var IsHandled: Boolean)17-29
[IntegrationEvent] OnCreateProdOrderOnAfterProdOrderInsert(var ProductionOrder: Record "Production Order"; SalesLine: Record "Sales Line")17-29
[IntegrationEvent] OnCreateProdOrderOnBeforeProdOrderInsert(var ProductionOrder: Record "Production Order"; SalesLine: Record "Sales Line")17-29
[IntegrationEvent] OnCreateProdOrderOnBeforeProcessItemSourceType(var ProdOrder: Record "Production Order"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean)17-29
[IntegrationEvent] OnCreateProductionOrderOnBeforeProdOrderLineModify(var ProdOrderLine: Record "Prod. Order Line"; var SalesLine: Record "Sales Line"; var ProdOrder: Record "Production Order"; var SalesLineReserve: Codeunit "Sales Line-Reserve")new in 18

All 13 events in 17-29

Public procedures 2 in 29

SetHideValidationDialog(NewHideValidationDialog: Boolean)17-29
CreateProductionOrder(SalesLine: Record "Sales Line"; ProdOrderStatus: Enum "Production Order Status"; OrderType: Enum "Create Production Order Type")new in 18

All 3 procedures in 17-29

Changes 3 in 26

List17181920212223242526272829
Procedures21
Events313
[IntegrationEvent] OnBeforeCreateProdOrderLines(var ProdOrder: Record "Production Order"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean)gone after 25
gone
[IntegrationEvent] OnBeforeCreateProdOrderLines(var ProdOrder: Record "Production Order"; var SalesLine: Record "Sales Line"; var IsHandled: Boolean; OrderType: Enum "Create Production Order Type")new in 26
added
[IntegrationEvent] OnCreateProductionOrderOnOrderTypeElse(var ProductionOrder: Record "Production Order"; var SalesLine: Record "Sales Line")new in 26
added

All 10 changes in 17-29