Codeunit 6492 Serv. Move Entries

Base Application, Microsoft.Utilities

Source AL, 416 lines

src/Layers/W1/BaseApp/Service/Utilities/ServMoveEntries.Codeunit.allines 20 to 35 of 416, Copyright (c) Microsoft Corporation. MIT

codeunit 6492 "Serv. Move Entries"{    Permissions = TableData "Service Ledger Entry" = rm,                  TableData "Warranty Ledger Entry" = rm,                  TableData "Service Contract Header" = rm;    var        AccountingPeriod: Record "Accounting Period";        ServiceLedgerEntry: Record "Service Ledger Entry";        WarrantyLedgerEntry: Record "Warranty Ledger Entry";        ServiceItem: Record "Service Item";        ServiceItemComponent: Record "Service Item Component";        ServContract: Record "Service Contract Header";        CannotDeleteLedgerEntriesInFiscalYearErr: Label 'You cannot delete %1 %2 because it has ledger entries in a fiscal year that has not been closed yet.', Comment = '%1 - table caption, %2 - customer number';        CannotDeleteOpenLedgerEntriesErr: Label 'You cannot delete %1 %2 because there are one or more open ledger entries.', Comment = '%1 - table caption, %2 - customer number';        CannotDeletePrepaidContractEntriesErr: Label 'You cannot delete %1 because prepaid contract entries exist in %2.', Comment = '%1 - table caption, %2 - contract number';

All 416 lines

Events 7 in 29

[IntegrationEvent] OnMoveItemEntriesOnAfterResetServLedgEntry(var ServiceLedgerEntry: Record "Service Ledger Entry")new in 25
[IntegrationEvent] OnAfterMoveServiceItemLedgerEntries(ServiceItem: Record "Service Item")new in 25
[IntegrationEvent] OnAfterMoveServContractLedgerEntries(ServiceContractHeader: Record "Service Contract Header")new in 25
[IntegrationEvent] OnAfterMoveServiceCostLedgerEntries(ServiceCost: Record "Service Cost")new in 25
[IntegrationEvent] OnBeforeMoveServiceItemLedgerEntries(ServiceItem: Record "Service Item"; var NewServiceItemNo: Code[20])new in 25
[IntegrationEvent] OnBeforeMoveServContractLedgerEntries(ServiceContractHeader: Record "Service Contract Header"; var NewContractNo: Code[20])new in 25
[IntegrationEvent] OnBeforeMoveServiceCostLedgerEntries(ServiceCost: Record "Service Cost"; var NewCostCode: Code[10])new in 25

Public procedures 4 in 29

CheckIfServiceItemCanBeDeleted(var ServiceLedgerEntry: Record "Service Ledger Entry"; ServiceItemNo: Code[20]): Textnew in 25
MoveServiceItemLedgerEntries(ServiceItem: Record "Service Item")new in 25
MoveServContractLedgerEntries(ServiceContractHeader: Record "Service Contract Header")new in 25
MoveServiceCostLedgerEntries(ServiceCost: Record "Service Cost")new in 25