Codeunit 6499 Serv. Posting Preview Handler

Base Application, Microsoft.Finance.GeneralLedger.Preview

Source AL, 73 lines

src/Layers/W1/BaseApp/Service/Finance/Preview/ServPostingPreviewHandler.Codeunit.allines 9 to 24 of 73, Copyright (c) Microsoft Corporation. MIT

codeunit 6499 "Serv. Posting Preview Handler"{    EventSubscriberInstance = Manual;    SingleInstance = true;    var        TempServiceLedgerEntry: Record "Service Ledger Entry" temporary;        TempWarrantyLedgerEntry: Record "Warranty Ledger Entry" temporary;    [EventSubscriber(ObjectType::Table, Database::"Service Ledger Entry", 'OnAfterInsertEvent', '', true, false)]    local procedure OnInsertServiceLedgerEntry(var Rec: Record "Service Ledger Entry"; RunTrigger: Boolean)    begin        if Rec.IsTemporary() then            exit;        if TempServiceLedgerEntry.Get(Rec."Entry No.") then

All 73 lines

Public procedures 3 in 29

DeleteAll()new in 25
GetTempServiceLedgerEntry(var OutTempServiceLedgerEntry: Record "Service Ledger Entry" temporary)new in 25
GetTempWarrantyLedgerEntry(var OutTempWarrantyLedgerEntry: Record "Warranty Ledger Entry" temporary)new in 25