Codeunit 5959 Serv. Posting Group Change

Base Application, Microsoft.Service.Document

Source AL, 62 lines

src/Layers/W1/BaseApp/Service/Document/ServPostingGroupChange.Codeunit.allines 11 to 26 of 62, Copyright (c) Microsoft Corporation. MIT

codeunit 5959 "Serv. Posting Group Change"{    var        CannotChangePostingGroupErr: Label 'You cannot change the value %1 to %2 because %3 has not been filled in.', Comment = '%1 = old posting group; %2 = new posting group; %3 = tablecaption of Subst. Vendor/Customer Posting Group';    [EventSubscriber(ObjectType::Codeunit, Codeunit::"Posting Group Change", 'OnAfterChangePostingGroup', '', true, false)]    local procedure OnAfterChangePostingGroup(SourceRecordRef: RecordRef; NewPostingGroup: Code[20]; OldPostingGroup: Code[20])    begin        if SourceRecordRef.Number = Database::"Service Header" then            CheckPostingGroupChangeInServiceHeader(NewPostingGroup, OldPostingGroup);    end;    local procedure CheckPostingGroupChangeInServiceHeader(NewPostingGroup: Code[20]; OldPostingGroup: Code[20])    begin        CheckCustomerPostingGroupChangeAndCustomerInService(NewPostingGroup, OldPostingGroup, '');    end;

All 62 lines

Public procedures 1 in 29

CheckAllowChangeServiceSetup()new in 25