Codeunit 5971 Service Header Apply

Base Application, Microsoft.Service.Document

Source AL, 67 lines

src/Layers/W1/BaseApp/Service/Document/ServiceHeaderApply.Codeunit.allines 9 to 24 of 67, Copyright (c) Microsoft Corporation. MIT

codeunit 5971 "Service Header Apply"{    TableNo = "Service Header";    trigger OnRun()    begin        ServHeader.Copy(Rec);        BilToCustNo := ServHeader."Bill-to Customer No.";        CustLedgEntry.SetCurrentKey("Customer No.", Open);        CustLedgEntry.SetRange("Customer No.", BilToCustNo);        CustLedgEntry.SetRange(Open, true);        OnRunOnAfterSetCustLedgEntryFilters(CustLedgEntry, ServHeader);        if ServHeader."Applies-to ID" = '' then            ServHeader."Applies-to ID" := ServHeader."No.";        if ServHeader."Applies-to ID" = '' then            Error(Text000, ServHeader.FieldCaption("No."), ServHeader.FieldCaption("Applies-to ID"));

All 67 lines

Events 1 in 29

[IntegrationEvent] OnRunOnAfterSetCustLedgEntryFilters(var CustLedgEntry: Record "Cust. Ledger Entry"; ServiceHeader: Record "Service Header")new in 21

Changes 1 in 21

List17181920212223242526272829
Events1
[IntegrationEvent] OnRunOnAfterSetCustLedgEntryFilters(var CustLedgEntry: Record "Cust. Ledger Entry"; ServiceHeader: Record "Service Header")new in 21
added

All 1 changes in 17-29