Codeunit 500 Enum Assignment Management

Base Application, Microsoft.Utilities

Source AL, 272 lines

src/Layers/W1/BaseApp/Utilities/EnumAssignmentManagement.Codeunit.allines 12 to 27 of 272, Copyright (c) Microsoft Corporation. MIT

codeunit 500 "Enum Assignment Management"{    trigger OnRun()    begin    end;    var#pragma warning disable AA0470        DocumentTypeEnumErr: Label '%1 Document Type %2 enum cannot be converted to %3 Document Type enum.';#pragma warning restore AA0470    procedure GetSalesApprovalDocumentType(SalesDocumentType: Enum "Sales Document Type") ApprovalDocumentType: Enum "Approval Document Type"    var        IsHandled: Boolean;    begin        case SalesDocumentType of

All 272 lines

Events 8 in 29

[IntegrationEvent] OnGetSalesApprovalDocumentType(SalesDocumentType: Enum "Sales Document Type"; var ApprovalDocumentType: Enum "Approval Document Type"; var IsHandled: Boolean)17-29
[IntegrationEvent] OnGetSalesIncomingDocumentType(SalesDocumentType: Enum "Sales Document Type"; var IncomingDocumentType: Enum "Incoming Document Type"; var IsHandled: Boolean)17-29
[IntegrationEvent] OnGetPurchApprovalDocumentType(PurchDocumentType: Enum "Purchase Document Type"; var ApprovalDocumentType: Enum "Approval Document Type"; var IsHandled: Boolean)17-29
[IntegrationEvent] OnGetPurchIncomingDocumentType(PurchDocumentType: Enum "Purchase Document Type"; var IncomingDocumentType: Enum "Incoming Document Type"; var IsHandled: Boolean)17-29
[IntegrationEvent] OnGetSalesLineTypeFromPurchLineType(PurchLineType: Enum "Purchase Line Type"; var SalesLineType: Enum "Sales Line Type"; var IsHandled: Boolean)17-29
[IntegrationEvent] OnGetPurchLineTypeFromSalesLineType(SalesLineType: Enum "Sales Line Type"; var PurchLineType: Enum "Purchase Line Type"; var IsHandled: Boolean)17-29
[IntegrationEvent] OnGetSalesDocumentTypeFromApproval(ApprovalDocumentType: Enum "Approval Document Type"; var SalesDocumentType: Enum "Sales Document Type"; var IsHandled: Boolean)new in 28

All 8 events

Public procedures 8 in 29

GetSalesApprovalDocumentType(SalesDocumentType: Enum "Sales Document Type"): Enum "Approval Document Type"17-29
GetSalesIncomingDocumentType(SalesDocumentType: Enum "Sales Document Type"): Enum "Incoming Document Type"17-29
GetPurchApprovalDocumentType(PurchDocumentType: Enum "Purchase Document Type"): Enum "Approval Document Type"17-29
GetPurchIncomingDocumentType(PurchDocumentType: Enum "Purchase Document Type"): Enum "Incoming Document Type"17-29
GetSalesLineTypeFromPurchLineType(PurchLineType: Enum "Purchase Line Type"): Enum "Sales Line Type"17-29
GetPurchLineTypeFromSalesLineType(SalesLineType: Enum "Sales Line Type"): Enum "Purchase Line Type"17-29

All 9 procedures in 17-29

Changes 5 in 28

List17181920212223242526272829
Procedures113
Events2
GetServiceIncomingDocumentType(ServiceDocumentType: Enum "Service Document Type"): Enum "Incoming Document Type"23 to 27
gone
GetSalesDocumentTypeFromApproval(ApprovalDocumentType: Enum "Approval Document Type"): Enum "Sales Document Type"new in 28
added
GetPurchDocumentTypeFromApproval(ApprovalDocumentType: Enum "Approval Document Type"): Enum "Purchase Document Type"new in 28
added
[IntegrationEvent] OnGetSalesDocumentTypeFromApproval(ApprovalDocumentType: Enum "Approval Document Type"; var SalesDocumentType: Enum "Sales Document Type"; var IsHandled: Boolean)new in 28
added
[IntegrationEvent] OnGetPurchDocumentTypeFromApproval(ApprovalDocumentType: Enum "Approval Document Type"; var PurchDocumentType: Enum "Purchase Document Type"; var IsHandled: Boolean)new in 28
added

All 7 changes in 17-29