Codeunit 6279 Sust. Approvals Mgmt.

Sustainability, Microsoft.Sustainability.Workflow

Source AL, 323 lines

src/Apps/W1/Sustainability/app/src/Workflow/SustApprovalsMgmt.Codeunit.allines 11 to 26 of 323, Copyright (c) Microsoft Corporation. MIT

codeunit 6279 "Sust. Approvals Mgmt."{    var        ApprovalsMgmt: Codeunit "Approvals Mgmt.";        WorkflowManagement: Codeunit "Workflow Management";        WorkflowEventHandling: Codeunit "Sust. Workflow Event Handling";        NoWorkflowEnabledErr: Label 'No approval workflow for this record type is enabled.';        PendingJournalBatchApprovalExistsErr: Label 'An approval request already exists.', Comment = '%1 is the Document No. of the journal line';        ApprovedJournalBatchApprovalExistsMsg: Label 'An approval request for this batch has already been sent and approved. Do you want to send another approval request?';        PreventDeleteRecordWithOpenApprovalEntryMsg: Label 'You can''t delete a record that has open approval entries. Do you want to cancel the approval request first?';        PreventInsertRecordWithOpenApprovalEntryForCurrUserMsg: Label 'You can''t insert a record for active batch approval request. To insert a record, you can Reject approval and document requested changes in approval comment lines.';        PreventInsertRecordWithOpenApprovalEntryMsg: Label 'You can''t insert a record that has active approval request. Do you want to cancel the batch approval request first?';        PendingApprovalLbl: Label 'Pending Approval';        RestrictBatchUsageDetailsLbl: Label 'The restriction was imposed because the journal batch requires approval.';        ImposedRestrictionLbl: Label 'Imposed restriction';

All 323 lines

Events 3 in 29

[IntegrationEvent] OnBeforeIsSustJournalBatchApprovalsWorkflowEnabled(var SustJournalBatch: Record "Sustainability Jnl. Batch"; var Result: Boolean; var IsHandled: Boolean)new in 27
[IntegrationEvent] OnSendSustainabilityJournalBatchForApproval(var SustJournalBatch: Record "Sustainability Jnl. Batch")new in 27
[IntegrationEvent] OnCancelSustainabilityJournalBatchApprovalRequest(var SustJournalBatch: Record "Sustainability Jnl. Batch")new in 27

Public procedures 1 in 29

CheckSustJournalBatchApprovalsWorkflowEnabled(var SustJournalBatch: Record "Sustainability Jnl. Batch"): Booleannew in 27

All 11 procedures in 27-29