Codeunit 550 VAT Rate Change Conversion

Base Application, Microsoft.Finance.VAT.RateChange

Source AL, 2,055 lines

src/Layers/W1/BaseApp/Finance/VAT/RateChange/VATRateChangeConversion.Codeunit.allines 31 to 46 of 2,055, Copyright (c) Microsoft Corporation. MIT

codeunit 550 "VAT Rate Change Conversion"{    Permissions = TableData "VAT Rate Change Log Entry" = i;    trigger OnRun()    var        IsHandled: Boolean;    begin        IsHandled := false;        OnBeforeOnRun(IsHandled);        if IsHandled then            exit;        if not VATRateChangeSetup.Get() then begin            VATRateChangeSetup.Init();            VATRateChangeSetup.Insert();

All 2,055 lines

Events 61 in 29

[IntegrationEvent] OnAddNewPurchaseLineOnBeforeOldPurchaseLineModify(var OldPurchaseLine: Record "Purchase Line"; var NewPurchaseLine: Record "Purchase Line"; VATProdPostingGroup: Code[20]; GenProdPostingGroup: Code[20])17-29
[IntegrationEvent] OnAddNewSalesLineOnBeforeOldSalesLineModify(var OldSalesLine: Record "Sales Line"; var NewSalesLine: Record "Sales Line"; VATProdPostingGroup: Code[20]; GenProdPostingGroup: Code[20])17-29
[IntegrationEvent] OnAfterUpdateTables(var VATRateChangeSetup: Record "VAT Rate Change Setup")17-29
[IntegrationEvent] OnAfterConvert(var VATRateChangeSetup: Record "VAT Rate Change Setup")17-29
[IntegrationEvent] OnBeforeConvert(var VATRateChangeSetup: Record "VAT Rate Change Setup")17-29
[IntegrationEvent] OnBeforeOnRun(var IsHandled: Boolean)17-29
[IntegrationEvent] OnBeforeUpdateGLAccount(var GLAccount: Record "G/L Account"; var VATRateChangeSetup: Record "VAT Rate Change Setup"; var IsHandled: Boolean)17-29

All 68 events in 17-29

Public procedures 15 in 29

GetNextPurchaseLineNo(PurchaseLine: Record "Purchase Line"; var NextLineNo: Integer): Boolean17-29
GetNextSalesLineNo(SalesLine: Record "Sales Line"; var NextLineNo: Integer): Boolean17-29
ConvertVATProdPostGrp(UpdateOption: Option): Booleannew in 18
ConvertGenProdPostGrp(UpdateOption: Option): Booleannew in 18
UpdateTable(TableID: Integer; ConvertVATProdPostingGroup: Boolean; ConvertGenProdPostingGroup: Boolean)new in 18
UpdateRec(var RecRef: RecordRef; ConvertVATProdPostingGroup: Boolean; ConvertGenProdPostingGroup: Boolean)new in 21

All 20 procedures in 17-29

Changes 7 in 28

List17181920212223242526272829
Procedures311154
Events512222633
GetNextServiceLineNo(ServiceLine: Record "Service Line"; var NextLineNo: Integer): Booleangone after 27
gone
internal RunOnAddNewServiceLineOnBeforeOldServiceLineModify(var OldServiceLine: Record "Service Line"; var NewServiceLine: Record "Service Line"; VATProdPostingGroup: Code[20]; GenProdPostingGroup: Code[20])25 to 27
gone
internal RunOnBeforeUpdateServPriceAdjDetail(var VATRateChangeSetup: Record "VAT Rate Change Setup"; var IsHandled: Boolean)25 to 27
gone
internal RunOnBeforeUpdateService(var VATRateChangeSetup: Record "VAT Rate Change Setup"; var IsHandled: Boolean)25 to 27
gone
[IntegrationEvent] OnAddNewServiceLineOnBeforeOldServiceLineModify(var OldServiceLine: Record "Service Line"; var NewServiceLine: Record "Service Line"; VATProdPostingGroup: Code[20]; GenProdPostingGroup: Code[20])gone after 27
gone
[IntegrationEvent] OnBeforeUpdateService(var VATRateChangeSetup: Record "VAT Rate Change Setup"; var IsHandled: Boolean)gone after 27
gone

All 86 changes in 17-29