Codeunit 960 Posting Group Change

Base Application, Microsoft.Finance.ReceivablesPayables

Source AL, 248 lines

src/Layers/W1/BaseApp/Finance/ReceivablesPayables/PostingGroupChange.Codeunit.allines 28 to 43 of 248, Copyright (c) Microsoft Corporation. MIT

codeunit 960 "Posting Group Change" implements "Posting Group Change Method"{    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';    /// <summary>    /// Changes posting group with validation based on document type and substitute posting group setup.    /// </summary>    /// <param name="NewPostingGroup">New posting group code to apply</param>    /// <param name="OldPostingGroup">Current posting group code</param>    /// <param name="SourceRecordVar">Source record variant containing the posting group field</param>    procedure ChangePostingGroup(NewPostingGroup: Code[20]; OldPostingGroup: Code[20]; SourceRecordVar: Variant)    var        SourceRecordRef: RecordRef;    begin        if OldPostingGroup = NewPostingGroup then

All 248 lines

Events 1 in 29

[IntegrationEvent] OnAfterChangePostingGroup(SourceRecordRef: RecordRef; NewPostingGroup: Code[20]; OldPostingGroup: Code[20])new in 25

Public procedures 10 in 29

ChangePostingGroup(NewPostingGroup: Code[20]; OldPostingGroup: Code[20]; SourceRecordVar: Variant)new in 22
CheckVendorPostingGroupSubstSetup(NewPostingGroup: Code[20]; OldPostingGroup: Code[20])new in 22
CheckAllowChangeSalesSetup()new in 22
CheckAllowChangePurchaseSetup()new in 22
HasCustomerSamePostingGroup(NewPostingGroup: Code[20]; CustomerNo: Code[20]): Booleannew in 22
HasVendorSamePostingGroup(NewPostingGroup: Code[20]; VendorNo: Code[20]): Booleannew in 22

All 11 procedures in 22-29

Changes 1 in 28

List17181920212223242526272829
Procedures141
Events1
CheckAllowChangeServiceSetup()22 to 27
gone

All 7 changes in 22-29