Codeunit 5802 Inventory Posting To G/L

Base Application, Microsoft.Inventory.Costing

Source AL, 1,679 lines

src/Layers/W1/BaseApp/Inventory/Costing/InventoryPostingToGL.Codeunit.allines 19 to 34 of 1,679, Copyright (c) Microsoft Corporation. MIT

codeunit 5802 "Inventory Posting To G/L"{    Permissions = TableData "G/L Account" = r,                  TableData "Invt. Posting Buffer" = rimd,                  TableData "Value Entry" = rm,                  TableData "G/L - Item Ledger Relation" = rimd;    TableNo = "Value Entry";    trigger OnRun()    var        GenJnlLine: Record "Gen. Journal Line";        IsHandled: Boolean;    begin        IsHandled := false;        OnBeforeOnRun(Rec, GlobalPostPerPostGroup, IsHandled);        if IsHandled then

All 1,679 lines

Events 60 in 29

[IntegrationEvent] OnAfterBufferCapacityPosting(var ValueEntry: Record "Value Entry"; var CostToPost: Decimal; var CostToPostACY: Decimal)17-29
[IntegrationEvent] OnAfterBufferConsumpPosting(var TempInvtPostingBuffer: array[20] of Record "Invt. Posting Buffer"; ValueEntry: Record "Value Entry"; var PostBufDimNo: Integer; var CostToPost: Decimal; var CostToPostACY: Decimal)17-29changed in 18
[IntegrationEvent] OnAfterBufferOutputPosting(var ValueEntry: Record "Value Entry"; var CostToPost: Decimal; var CostToPostACY: Decimal; var ExpCostToPost: Decimal; var ExpCostToPostACY: Decimal)17-29
[IntegrationEvent] OnAfterBufferPosting(var ValueEntry: Record "Value Entry"; var CostToPost: Decimal; var CostToPostACY: Decimal; var ExpCostToPost: Decimal; var ExpCostToPostACY: Decimal)17-29
[IntegrationEvent] OnAfterBufferSalesPosting(var TempInvtPostingBuffer: array[20] of Record "Invt. Posting Buffer"; ValueEntry: Record "Value Entry"; var PostBufDimNo: Integer)17-29changed in 18
[IntegrationEvent] OnAfterGLItemLedgRelationInsert()17-29
[IntegrationEvent] OnAfterInitInvtPostBuf(var ValueEntry: Record "Value Entry")17-29

All 71 events in 17-29

Public procedures 16 in 29

Initialize(PostPerPostGroup: Boolean)17-29
SetRunOnlyCheck(SetCalledFromItemPosting: Boolean; SetCheckOnly: Boolean; SetCalledFromTestReport: Boolean)17-29
BufferInvtPosting(var ValueEntry: Record "Value Entry"): Boolean17-29
InitInvtPostBuf(ValueEntry: Record "Value Entry"; AccType: Enum "Invt. Posting Buffer Account Type"; BalAccType: Enum "Invt. Posting Buffer Account Type"; CostToPost: Decimal; CostToPostACY: Decimal; InterimAccount: Boolean)17-29
PostInvtPostBufPerEntry(var ValueEntry: Record "Value Entry")17-29
PostInvtPostBufPerPostGrp(DocNo: Code[20]; Desc: Text[50])17-29

All 16 procedures

Changes 1 in 29

List17181920212223242526272829
Procedures21111
Events18331262432
GetGLRegister(var GLRegister: Record "G/L Register"; var NextVATEntryNo: Integer; var NextTransactionNo: Integer)new in 29
added

All 50 changes in 17-29