Codeunit 6216 Sustainability Jnl.-Check

Sustainability, Microsoft.Sustainability.Posting

Source AL, 176 lines

src/Apps/W1/Sustainability/app/src/Posting/SustainabilityJnlCheck.Codeunit.allines 10 to 25 of 176, Copyright (c) Microsoft Corporation. MIT

codeunit 6216 "Sustainability Jnl.-Check"{    TableNo = "Sustainability Jnl. Line";    procedure CheckCommonConditionsBeforePosting(var SustainabilityJnlLine: Record "Sustainability Jnl. Line")    begin        if SustainabilityJnlLine."Line No." = 0 then            Error(SustainabilityJnlLineEmptyErr);        // This condition should be met by design, but checking in case of customization        if not (SustainabilityJnlLine.GetRangeMax("Journal Template Name") = SustainabilityJnlLine.GetRangeMin("Journal Template Name")) then            Error(SustainabilityJournalTemplateMismatchErr);        if not (SustainabilityJnlLine.GetRangeMax("Journal Batch Name") = SustainabilityJnlLine.GetRangeMin("Journal Batch Name")) then            Error(SustainabilityJournalBatchMismatchErr);    end;

All 176 lines

Events 1 in 29

[IntegrationEvent] OnAfterCheckSustainabilityJournalLine(SustainabilityJnlLine: Record "Sustainability Jnl. Line")new in 24

Public procedures 4 in 29

CheckCommonConditionsBeforePosting(var SustainabilityJnlLine: Record "Sustainability Jnl. Line")new in 24
CheckSustainabilityJournalLineWithErrorCollect(SustainabilityJnlLine: Record "Sustainability Jnl. Line"; var TempErrorMessages: Record "Error Message" temporary)new in 24
CheckAllJournalLinesWithErrorCollect(var SustainabilityJnlLine: Record "Sustainability Jnl. Line"; var TempErrorMessages: Record "Error Message" temporary)new in 24
CheckSustainabilityJournalLine(SustainabilityJnlLine: Record "Sustainability Jnl. Line")new in 24